SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Tests: Split module unit tests into unit and integration tests (#1668)
bcoles75944b8f8b4f
diff --git a/test/README.md b/test/README.mdnew file mode 100644index 00000000..2f3dd504--- /dev/null+++ b/test/README.md@@ -0,0 +1,65 @@+# Tests++SpiderFoot includes various test suites.+++## Unit and Integration Tests++Unit and integration tests require test dependencies to be installed:++```+pip3 install -r test/requirements.txt+```++To run the tests locally, run `./test/run` from the SpiderFoot root directory.++These tests are run on all pull requests automatically.++Module integration tests are excluded.++To run all unit and integration tests, including module integration tests, run:++```+python3 -m pytest -n auto --flake8 --dist loadfile --durations=5 --cov-report html --cov=. .+```+++## Module Integration Tests++The module integration tests check module integration with remote third-party data sources.++To run the tests:++```+python3 -m pytest -n auto --flake8 --dist loadfile --durations=5 --cov-report html --cov=. test/integration/modules/+```+++## Acceptance Tests++The acceptance tests check that the web intereface is working as+intended and that SpiderFooot is operating correctly as a whole.++These tests use a headless browser (Firefox by default), and+must be run with `./test/acceptance` as current working directory.++Requires SpiderFoot web server to be running on default port (`5001`).++Requires test dependencies to be installed:++```+pip3 install -r test/acceptance/requirements.txt+```++To run the tests, start the SpiderFoot web interface on the default port:++```+python3 ./sf.py -l 127.0.0.1:5001+```++Then run robot (override the `BROWSER` variable if necessary):++```+cd test/acceptance+robot --variable BROWSER:Firefox --outputdir results scan.robot+```diff --git a/test/integration/modules/__init__.py b/test/integration/modules/__init__.pynew file mode 100644index 00000000..e69de29bdiff --git a/test/integration/modules/test_sfp__stor_db.py b/test/integration/modules/test_sfp__stor_db.pynew file mode 100644index 00000000..feca1293--- /dev/null+++ b/test/integration/modules/test_sfp__stor_db.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp__stor_db import sfp__stor_db+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegration_stor_db(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp__stor_db()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp__stor_stdout.py b/test/integration/modules/test_sfp__stor_stdout.pynew file mode 100644index 00000000..f1e0268d--- /dev/null+++ b/test/integration/modules/test_sfp__stor_stdout.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp__stor_stdout import sfp__stor_stdout+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegration_stor_stdout(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp__stor_stdout()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_abstractapi.py b/test/integration/modules/test_sfp_abstractapi.pynew file mode 100644index 00000000..1252792b--- /dev/null+++ b/test/integration/modules/test_sfp_abstractapi.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_abstractapi import sfp_abstractapi+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationAbstractapi(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_abstractapi()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_abusech.py b/test/integration/modules/test_sfp_abusech.pynew file mode 100644index 00000000..703f6978--- /dev/null+++ b/test/integration/modules/test_sfp_abusech.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_abusech import sfp_abusech+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationAbusech(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_abusech()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_abuseipdb.py b/test/integration/modules/test_sfp_abuseipdb.pynew file mode 100644index 00000000..c4278819--- /dev/null+++ b/test/integration/modules/test_sfp_abuseipdb.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_abuseipdb import sfp_abuseipdb+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationabuseipdb(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_abuseipdb()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_abusix.py b/test/integration/modules/test_sfp_abusix.pynew file mode 100644index 00000000..ac8b0c85--- /dev/null+++ b/test/integration/modules/test_sfp_abusix.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_abusix import sfp_abusix+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationAbusix(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_abusix()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_accounts.py b/test/integration/modules/test_sfp_accounts.pynew file mode 100644index 00000000..0827379e--- /dev/null+++ b/test/integration/modules/test_sfp_accounts.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_accounts import sfp_accounts+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationaccounts(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_accounts()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_adblock.py b/test/integration/modules/test_sfp_adblock.pynew file mode 100644index 00000000..1f519eec--- /dev/null+++ b/test/integration/modules/test_sfp_adblock.py@@ -0,0 +1,126 @@+import pytest+import unittest++from modules.sfp_adblock import sfp_adblock+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationAdblock(unittest.TestCase):++ def test_handleEvent_event_data_provider_javascript_url_matching_ad_filter_should_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_adblock()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ expected = 'URL_ADBLOCKED_EXTERNAL'+ if str(event.eventType) != expected:+ raise Exception(f"{event.eventType} != {expected}")++ expected = 'https://example.local/lib/ad.js'+ if str(event.data) != expected:+ raise Exception(f"{event.data} != {expected}")++ raise Exception("OK")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_adblock)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'PROVIDER_JAVASCRIPT'+ event_data = 'https://example.local/lib/ad.js'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ with self.assertRaises(Exception) as cm:+ module.handleEvent(evt)++ self.assertEqual("OK", str(cm.exception))++ def test_handleEvent_event_data_external_url_matching_ad_filter_should_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_adblock()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ expected = 'URL_ADBLOCKED_EXTERNAL'+ if str(event.eventType) != expected:+ raise Exception(f"{event.eventType} != {expected}")++ expected = 'https://example.local/lib/ad.js'+ if str(event.data) != expected:+ raise Exception(f"{event.data} != {expected}")++ raise Exception("OK")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_adblock)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'LINKED_URL_EXTERNAL'+ event_data = 'https://example.local/lib/ad.js'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ with self.assertRaises(Exception) as cm:+ module.handleEvent(evt)++ self.assertEqual("OK", str(cm.exception))++ def test_handleEvent_event_data_external_url_not_matching_ad_filter_should_not_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_adblock()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ raise Exception(f"Raised event {event.eventType}: {event.data}")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_adblock)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'LINKED_URL_EXTERNAL'+ event_data = 'https://example.local/lib/example.js'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)+ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_adguard_dns.py b/test/integration/modules/test_sfp_adguard_dns.pynew file mode 100644index 00000000..9349ceb1--- /dev/null+++ b/test/integration/modules/test_sfp_adguard_dns.py@@ -0,0 +1,84 @@+import pytest+import unittest++from modules.sfp_adguard_dns import sfp_adguard_dns+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationAdGuardDns(unittest.TestCase):++ def test_handleEvent_event_data_adult_internet_name_blocked_should_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_adguard_dns()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ expected = 'BLACKLISTED_INTERNET_NAME'+ if str(event.eventType) != expected:+ raise Exception(f"{event.eventType} != {expected}")++ expected = 'AdGuard - Family Filter [pornhub.com]'+ if str(event.data) != expected:+ raise Exception(f"{event.data} != {expected}")++ raise Exception("OK")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_adguard_dns)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'INTERNET_NAME'+ event_data = 'pornhub.com'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ with self.assertRaises(Exception) as cm:+ module.handleEvent(evt)++ self.assertEqual("OK", str(cm.exception))++ def test_handleEvent_event_data_safe_internet_name_not_blocked_should_not_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_adguard_dns()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ raise Exception(f"Raised event {event.eventType}: {event.data}")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_adguard_dns)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'INTERNET_NAME'+ event_data = 'spiderfoot.net'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)+ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_ahmia.py b/test/integration/modules/test_sfp_ahmia.pynew file mode 100644index 00000000..9e1356ee--- /dev/null+++ b/test/integration/modules/test_sfp_ahmia.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_ahmia import sfp_ahmia+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationAhmia(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_ahmia()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_alienvault.py b/test/integration/modules/test_sfp_alienvault.pynew file mode 100644index 00000000..2b17d528--- /dev/null+++ b/test/integration/modules/test_sfp_alienvault.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_alienvault import sfp_alienvault+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationalienvault(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_alienvault()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_alienvaultiprep.py b/test/integration/modules/test_sfp_alienvaultiprep.pynew file mode 100644index 00000000..98b10b6c--- /dev/null+++ b/test/integration/modules/test_sfp_alienvaultiprep.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_alienvaultiprep import sfp_alienvaultiprep+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationAlienvaultiprep(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_alienvaultiprep()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_apple_itunes.py b/test/integration/modules/test_sfp_apple_itunes.pynew file mode 100644index 00000000..0ed0725b--- /dev/null+++ b/test/integration/modules/test_sfp_apple_itunes.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_apple_itunes import sfp_apple_itunes+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationAppleItunes(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_apple_itunes()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_archiveorg.py b/test/integration/modules/test_sfp_archiveorg.pynew file mode 100644index 00000000..c0bc3cd5--- /dev/null+++ b/test/integration/modules/test_sfp_archiveorg.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_archiveorg import sfp_archiveorg+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationarchiveorg(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_archiveorg()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_arin.py b/test/integration/modules/test_sfp_arin.pynew file mode 100644index 00000000..e8b5cd6e--- /dev/null+++ b/test/integration/modules/test_sfp_arin.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_arin import sfp_arin+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationarin(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_arin()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_azureblobstorage.py b/test/integration/modules/test_sfp_azureblobstorage.pynew file mode 100644index 00000000..e03a490b--- /dev/null+++ b/test/integration/modules/test_sfp_azureblobstorage.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_azureblobstorage import sfp_azureblobstorage+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationazureblobstorage(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_azureblobstorage()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_badpackets.py b/test/integration/modules/test_sfp_badpackets.pynew file mode 100644index 00000000..63742e84--- /dev/null+++ b/test/integration/modules/test_sfp_badpackets.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_badpackets import sfp_badpackets+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationbadpackets(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_badpackets()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_bgpview.py b/test/integration/modules/test_sfp_bgpview.pynew file mode 100644index 00000000..8006e5fb--- /dev/null+++ b/test/integration/modules/test_sfp_bgpview.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_bgpview import sfp_bgpview+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationBgpview(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_bgpview()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_binaryedge.py b/test/integration/modules/test_sfp_binaryedge.pynew file mode 100644index 00000000..ac3e449b--- /dev/null+++ b/test/integration/modules/test_sfp_binaryedge.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_binaryedge import sfp_binaryedge+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationBinaryedge(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_binaryedge()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_bingsearch.py b/test/integration/modules/test_sfp_bingsearch.pynew file mode 100644index 00000000..eb42a169--- /dev/null+++ b/test/integration/modules/test_sfp_bingsearch.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_bingsearch import sfp_bingsearch+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationbingsearch(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_bingsearch()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_bingsharedip.py b/test/integration/modules/test_sfp_bingsharedip.pynew file mode 100644index 00000000..c5d106ae--- /dev/null+++ b/test/integration/modules/test_sfp_bingsharedip.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_bingsharedip import sfp_bingsharedip+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationbingsharedip(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_bingsharedip()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_bitcoinabuse.py b/test/integration/modules/test_sfp_bitcoinabuse.pynew file mode 100644index 00000000..a13ee623--- /dev/null+++ b/test/integration/modules/test_sfp_bitcoinabuse.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_bitcoinabuse import sfp_bitcoinabuse+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationBitcoinAbuse(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_bitcoinabuse()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_bitcoinwhoswho.py b/test/integration/modules/test_sfp_bitcoinwhoswho.pynew file mode 100644index 00000000..f337e17d--- /dev/null+++ b/test/integration/modules/test_sfp_bitcoinwhoswho.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_bitcoinwhoswho import sfp_bitcoinwhoswho+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationBitcoinwhoswho(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_bitcoinwhoswho()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_blockchain.py b/test/integration/modules/test_sfp_blockchain.pynew file mode 100644index 00000000..cb238d96--- /dev/null+++ b/test/integration/modules/test_sfp_blockchain.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_blockchain import sfp_blockchain+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationBlockchain(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_blockchain()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_blocklistde.py b/test/integration/modules/test_sfp_blocklistde.pynew file mode 100644index 00000000..4f6948ad--- /dev/null+++ b/test/integration/modules/test_sfp_blocklistde.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_blocklistde import sfp_blocklistde+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationBlocklistde(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_blocklistde()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_botscout.py b/test/integration/modules/test_sfp_botscout.pynew file mode 100644index 00000000..1b5e7635--- /dev/null+++ b/test/integration/modules/test_sfp_botscout.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_botscout import sfp_botscout+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationBotscout(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_botscout()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_botvrij.py b/test/integration/modules/test_sfp_botvrij.pynew file mode 100644index 00000000..f417590c--- /dev/null+++ b/test/integration/modules/test_sfp_botvrij.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_botvrij import sfp_botvrij+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationBotvrij(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_botvrij()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_builtwith.py b/test/integration/modules/test_sfp_builtwith.pynew file mode 100644index 00000000..453a6606--- /dev/null+++ b/test/integration/modules/test_sfp_builtwith.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_builtwith import sfp_builtwith+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationBuiltwith(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_builtwith()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_c99.py b/test/integration/modules/test_sfp_c99.pynew file mode 100644index 00000000..665f10fa--- /dev/null+++ b/test/integration/modules/test_sfp_c99.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_c99 import sfp_c99+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationC99(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_c99()+ module.setup(sf, dict())++ target_value = "example target value"+ target_type = "IP_ADDRESS"+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = "ROOT"+ event_data = "example data"+ event_module = ""+ source_event = ""+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_callername.py b/test/integration/modules/test_sfp_callername.pynew file mode 100644index 00000000..fde60350--- /dev/null+++ b/test/integration/modules/test_sfp_callername.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_callername import sfp_callername+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationcallername(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_callername()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_censys.py b/test/integration/modules/test_sfp_censys.pynew file mode 100644index 00000000..5b9a87df--- /dev/null+++ b/test/integration/modules/test_sfp_censys.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_censys import sfp_censys+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationCensys(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_censys()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_certspotter.py b/test/integration/modules/test_sfp_certspotter.pynew file mode 100644index 00000000..0edb9efa--- /dev/null+++ b/test/integration/modules/test_sfp_certspotter.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_certspotter import sfp_certspotter+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationCertspotter(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_certspotter()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_cinsscore.py b/test/integration/modules/test_sfp_cinsscore.pynew file mode 100644index 00000000..e9b74f1a--- /dev/null+++ b/test/integration/modules/test_sfp_cinsscore.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_cinsscore import sfp_cinsscore+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationCinsscore(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_cinsscore()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_circllu.py b/test/integration/modules/test_sfp_circllu.pynew file mode 100644index 00000000..0ce1ab5a--- /dev/null+++ b/test/integration/modules/test_sfp_circllu.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_circllu import sfp_circllu+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationCircllu(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_circllu()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_citadel.py b/test/integration/modules/test_sfp_citadel.pynew file mode 100644index 00000000..327d31a0--- /dev/null+++ b/test/integration/modules/test_sfp_citadel.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_citadel import sfp_citadel+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationcitadel(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_citadel()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_cleanbrowsing.py b/test/integration/modules/test_sfp_cleanbrowsing.pynew file mode 100644index 00000000..63ca1dde--- /dev/null+++ b/test/integration/modules/test_sfp_cleanbrowsing.py@@ -0,0 +1,84 @@+import pytest+import unittest++from modules.sfp_cleanbrowsing import sfp_cleanbrowsing+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationcleanbrowsing(unittest.TestCase):++ def test_handleEvent_event_data_adult_internet_name_blocked_should_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_cleanbrowsing()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ expected = 'BLACKLISTED_INTERNET_NAME'+ if str(event.eventType) != expected:+ raise Exception(f"{event.eventType} != {expected}")++ expected = 'CleanBrowsing DNS - Adult [pornhub.com]'+ if str(event.data) != expected:+ raise Exception(f"{event.data} != {expected}")++ raise Exception("OK")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_cleanbrowsing)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'INTERNET_NAME'+ event_data = 'pornhub.com'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ with self.assertRaises(Exception) as cm:+ module.handleEvent(evt)++ self.assertEqual("OK", str(cm.exception))++ def test_handleEvent_event_data_safe_internet_name_not_blocked_should_not_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_cleanbrowsing()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ raise Exception(f"Raised event {event.eventType}: {event.data}")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_cleanbrowsing)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'INTERNET_NAME'+ event_data = 'spiderfoot.net'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)+ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_cleantalk.py b/test/integration/modules/test_sfp_cleantalk.pynew file mode 100644index 00000000..8e8c77ba--- /dev/null+++ b/test/integration/modules/test_sfp_cleantalk.py@@ -0,0 +1,47 @@+import pytest+import unittest++from modules.sfp_cleantalk import sfp_cleantalk+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationcleantalk(unittest.TestCase):++ def test_handleEvent_event_data_safe_ip_address_not_blocked_should_not_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_cleantalk()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ module.opts['_fetchtimeout'] = 15+ module.optdescs['_fetchtimeout'] = ''+ module.opts['_useragent'] = ''+ module.optdescs['_useragent'] = ''++ def new_notifyListeners(self, event):+ raise Exception(f"Raised event {event.eventType}: {event.data}")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_cleantalk)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'IP_ADDRESS'+ event_data = '1.0.0.1'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)+ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_clearbit.py b/test/integration/modules/test_sfp_clearbit.pynew file mode 100644index 00000000..ec1a4029--- /dev/null+++ b/test/integration/modules/test_sfp_clearbit.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_clearbit import sfp_clearbit+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationclearbit(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_clearbit()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_cloudflaredns.py b/test/integration/modules/test_sfp_cloudflaredns.pynew file mode 100644index 00000000..3a2f6734--- /dev/null+++ b/test/integration/modules/test_sfp_cloudflaredns.py@@ -0,0 +1,84 @@+import pytest+import unittest++from modules.sfp_cloudflaredns import sfp_cloudflaredns+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationCloudflaredns(unittest.TestCase):++ def test_handleEvent_event_data_safe_internet_name_not_blocked_should_not_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_cloudflaredns()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ raise Exception(f"Raised event {event.eventType}: {event.data}")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_cloudflaredns)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'INTERNET_NAME'+ event_data = 'cloudflare.com'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)+ result = module.handleEvent(evt)++ self.assertIsNone(result)++ def test_handleEvent_event_data_adult_internet_name_blocked_should_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_cloudflaredns()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ expected = 'BLACKLISTED_INTERNET_NAME'+ if str(event.eventType) != expected:+ raise Exception(f"{event.eventType} != {expected}")++ expected = 'CloudFlare - Family [pornhub.com]'+ if str(event.data) != expected:+ raise Exception(f"{event.data} != {expected}")++ raise Exception("OK")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_cloudflaredns)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'INTERNET_NAME'+ event_data = 'pornhub.com'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ with self.assertRaises(Exception) as cm:+ module.handleEvent(evt)++ self.assertEqual("OK", str(cm.exception))diff --git a/test/integration/modules/test_sfp_coinblocker.py b/test/integration/modules/test_sfp_coinblocker.pynew file mode 100644index 00000000..6c48e526--- /dev/null+++ b/test/integration/modules/test_sfp_coinblocker.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_coinblocker import sfp_coinblocker+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationCoinblocker(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_coinblocker()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_commoncrawl.py b/test/integration/modules/test_sfp_commoncrawl.pynew file mode 100644index 00000000..5366ca7e--- /dev/null+++ b/test/integration/modules/test_sfp_commoncrawl.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_commoncrawl import sfp_commoncrawl+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationcommoncrawl(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_commoncrawl()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_comodo.py b/test/integration/modules/test_sfp_comodo.pynew file mode 100644index 00000000..f7321695--- /dev/null+++ b/test/integration/modules/test_sfp_comodo.py@@ -0,0 +1,42 @@+import pytest+import unittest++from modules.sfp_comodo import sfp_comodo+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationcomodo(unittest.TestCase):++ def test_handleEvent_event_data_safe_internet_name_not_blocked_should_not_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_comodo()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ raise Exception(f"Raised event {event.eventType}: {event.data}")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_comodo)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'INTERNET_NAME'+ event_data = 'comodo.com'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)+ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_crobat_api.py b/test/integration/modules/test_sfp_crobat_api.pynew file mode 100644index 00000000..c45c30e0--- /dev/null+++ b/test/integration/modules/test_sfp_crobat_api.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_crobat_api import sfp_crobat_api+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationCrobat_api(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_crobat_api()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_crossref.py b/test/integration/modules/test_sfp_crossref.pynew file mode 100644index 00000000..de2b81d0--- /dev/null+++ b/test/integration/modules/test_sfp_crossref.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_crossref import sfp_crossref+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationCrossref(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_crossref()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_crt.py b/test/integration/modules/test_sfp_crt.pynew file mode 100644index 00000000..5eb3cec4--- /dev/null+++ b/test/integration/modules/test_sfp_crt.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_crt import sfp_crt+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationCrt(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_crt()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_crxcavator.py b/test/integration/modules/test_sfp_crxcavator.pynew file mode 100644index 00000000..feb1d334--- /dev/null+++ b/test/integration/modules/test_sfp_crxcavator.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_crxcavator import sfp_crxcavator+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationCrxcavator(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_crxcavator()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_customfeed.py b/test/integration/modules/test_sfp_customfeed.pynew file mode 100644index 00000000..54b0ab90--- /dev/null+++ b/test/integration/modules/test_sfp_customfeed.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_customfeed import sfp_customfeed+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationCustomfeed(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_customfeed()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_cybercrimetracker.py b/test/integration/modules/test_sfp_cybercrimetracker.pynew file mode 100644index 00000000..dc2b5220--- /dev/null+++ b/test/integration/modules/test_sfp_cybercrimetracker.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_cybercrimetracker import sfp_cybercrimetracker+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationCybercrimetracker(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_cybercrimetracker()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_darksearch.py b/test/integration/modules/test_sfp_darksearch.pynew file mode 100644index 00000000..ec519b1f--- /dev/null+++ b/test/integration/modules/test_sfp_darksearch.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_darksearch import sfp_darksearch+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationDarksearch(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_darksearch()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_debounce.py b/test/integration/modules/test_sfp_debounce.pynew file mode 100644index 00000000..827aec01--- /dev/null+++ b/test/integration/modules/test_sfp_debounce.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_debounce import sfp_debounce+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationDebounce(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_debounce()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'EMAILADDR'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_dehashed.py b/test/integration/modules/test_sfp_dehashed.pynew file mode 100644index 00000000..a67cf81f--- /dev/null+++ b/test/integration/modules/test_sfp_dehashed.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_dehashed import sfp_dehashed+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationDehashed(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_dehashed()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'EMAILADDR'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_digitaloceanspace.py b/test/integration/modules/test_sfp_digitaloceanspace.pynew file mode 100644index 00000000..7d3e7802--- /dev/null+++ b/test/integration/modules/test_sfp_digitaloceanspace.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_digitaloceanspace import sfp_digitaloceanspace+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationDigitaloceanspace(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_digitaloceanspace()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_dns_for_family.py b/test/integration/modules/test_sfp_dns_for_family.pynew file mode 100644index 00000000..2e35ebad--- /dev/null+++ b/test/integration/modules/test_sfp_dns_for_family.py@@ -0,0 +1,84 @@+import pytest+import unittest++from modules.sfp_dns_for_family import sfp_dns_for_family+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationDnsForFamily(unittest.TestCase):++ def test_handleEvent_event_data_safe_internet_name_not_blocked_should_not_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_dns_for_family()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ raise Exception(f"Raised event {event.eventType}: {event.data}")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_dns_for_family)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'INTERNET_NAME'+ event_data = 'dns_for_family.com'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)+ result = module.handleEvent(evt)++ self.assertIsNone(result)++ def test_handleEvent_event_data_adult_internet_name_blocked_should_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_dns_for_family()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ expected = 'BLACKLISTED_INTERNET_NAME'+ if str(event.eventType) != expected:+ raise Exception(f"{event.eventType} != {expected}")++ expected = 'DNS for Family [pornhub.com]'+ if str(event.data) != expected:+ raise Exception(f"{event.data} != {expected}")++ raise Exception("OK")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_dns_for_family)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'INTERNET_NAME'+ event_data = 'pornhub.com'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ with self.assertRaises(Exception) as cm:+ module.handleEvent(evt)++ self.assertEqual("OK", str(cm.exception))diff --git a/test/integration/modules/test_sfp_dnsbrute.py b/test/integration/modules/test_sfp_dnsbrute.pynew file mode 100644index 00000000..8132baba--- /dev/null+++ b/test/integration/modules/test_sfp_dnsbrute.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_dnsbrute import sfp_dnsbrute+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationDnsBrute(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_dnsbrute()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_dnscommonsrv.py b/test/integration/modules/test_sfp_dnscommonsrv.pynew file mode 100644index 00000000..a803b39c--- /dev/null+++ b/test/integration/modules/test_sfp_dnscommonsrv.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_dnscommonsrv import sfp_dnscommonsrv+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationDnsCommonsrv(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_dnscommonsrv()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_dnsdb.py b/test/integration/modules/test_sfp_dnsdb.pynew file mode 100644index 00000000..964ef7b5--- /dev/null+++ b/test/integration/modules/test_sfp_dnsdb.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_dnsdb import sfp_dnsdb+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationdnsdb(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_dnsdb()+ module.setup(sf, dict())++ target_value = "example target value"+ target_type = "IP_ADDRESS"+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = "ROOT"+ event_data = "example data"+ event_module = ""+ source_event = ""+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_dnsdumpster.py b/test/integration/modules/test_sfp_dnsdumpster.pynew file mode 100644index 00000000..229f6f1f--- /dev/null+++ b/test/integration/modules/test_sfp_dnsdumpster.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_dnsdumpster import sfp_dnsdumpster+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationDnsDumpster(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_dnsdumpster()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_dnsgrep.py b/test/integration/modules/test_sfp_dnsgrep.pynew file mode 100644index 00000000..6b4c3020--- /dev/null+++ b/test/integration/modules/test_sfp_dnsgrep.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_dnsgrep import sfp_dnsgrep+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationDnsgrep(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_dnsgrep()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_dnsneighbor.py b/test/integration/modules/test_sfp_dnsneighbor.pynew file mode 100644index 00000000..18f55a52--- /dev/null+++ b/test/integration/modules/test_sfp_dnsneighbor.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_dnsneighbor import sfp_dnsneighbor+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationDnsneighbor(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_dnsneighbor()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_dnsraw.py b/test/integration/modules/test_sfp_dnsraw.pynew file mode 100644index 00000000..388ca79b--- /dev/null+++ b/test/integration/modules/test_sfp_dnsraw.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_dnsraw import sfp_dnsraw+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationdnsraw(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_dnsraw()+ module.setup(sf, dict())++ target_value = '1.1.1.1'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = '1.1.1.1'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_dnsresolve.py b/test/integration/modules/test_sfp_dnsresolve.pynew file mode 100644index 00000000..0ed8d1f2--- /dev/null+++ b/test/integration/modules/test_sfp_dnsresolve.py@@ -0,0 +1,232 @@+import pytest+import unittest++from modules.sfp_dnsresolve import sfp_dnsresolve+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationDnsResolve(unittest.TestCase):++ def test_enrichTarget_should_return_SpiderFootTarget(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_dnsresolve()+ module.setup(sf, dict())++ target_value = '127.0.0.1'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)++ result = module.enrichTarget(target)+ self.assertIsInstance(result, SpiderFootTarget)+ self.assertEqual(result.targetType, target_type)+ self.assertEqual(result.targetValue, target_value)++ def test_resolveTargets_should_return_list(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_dnsresolve()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ invalid_types = [None, "", list(), dict()]+ for invalid_type in invalid_types:+ with self.subTest(invalid_type=invalid_type):+ resolve_targets = module.resolveTargets(invalid_type, False)+ self.assertIsInstance(resolve_targets, list)++ target = SpiderFootTarget("spiderfoot.net", "INTERNET_NAME")+ resolve_targets = module.resolveTargets(target, False)+ self.assertIsInstance(resolve_targets, list)+ self.assertIn('spiderfoot.net', resolve_targets)++ target = SpiderFootTarget("127.0.0.1", "IP_ADDRESS")+ resolve_targets = module.resolveTargets(target, False)+ self.assertIsInstance(resolve_targets, list)+ self.assertIn('127.0.0.1', resolve_targets)++ target = SpiderFootTarget("::1", "IPV6_ADDRESS")+ resolve_targets = module.resolveTargets(target, False)+ self.assertIsInstance(resolve_targets, list)+ self.assertIn('::1', resolve_targets)++ target = SpiderFootTarget("127.0.0.1/32", "NETBLOCK_OWNER")+ resolve_targets = module.resolveTargets(target, False)+ self.assertIsInstance(resolve_targets, list)+ self.assertIn('127.0.0.1', resolve_targets)++ # note: test fails on MacOSX on CI+ def test_handleEvent_event_data_ip_address_should_return_internet_name_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_dnsresolve()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ expected = 'INTERNET_NAME'+ if str(event.eventType) != expected:+ raise Exception(f"{event.eventType} != {expected}")++ expected = "one.one.one.one"+ if str(event.data) != expected:+ raise Exception(f"{event.data} != {expected}")++ raise Exception("OK")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_dnsresolve)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'IP_ADDRESS'+ event_data = '1.1.1.1'+ event_module = 'example module'+ source_event = evt+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ with self.assertRaises(Exception) as cm:+ module.handleEvent(evt)++ self.assertEqual("OK", str(cm.exception))++ # note: test fails on MacOSX on CI+ def test_handleEvent_event_data_ipv6_address_should_return_internet_name_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_dnsresolve()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ expected = 'INTERNET_NAME'+ if str(event.eventType) != expected:+ raise Exception(f"{event.eventType} != {expected}")++ expected = "one.one.one.one"+ if str(event.data) != expected:+ raise Exception(f"{event.data} != {expected}")++ raise Exception("OK")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_dnsresolve)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'IPV6_ADDRESS'+ event_data = '2606:4700:4700::1111'+ event_module = 'example module'+ source_event = evt+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ with self.assertRaises(Exception) as cm:+ module.handleEvent(evt)++ self.assertEqual("OK", str(cm.exception))++ # note: test fails on MacOSX on CI+ def test_handleEvent_event_data_affiliate_ip_address_should_return_affiliate_internet_name_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_dnsresolve()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ expected = 'AFFILIATE_INTERNET_NAME'+ if str(event.eventType) != expected:+ raise Exception(f"{event.eventType} != {expected}")++ expected = "one.one.one.one"+ if str(event.data) != expected:+ raise Exception(f"{event.data} != {expected}")++ raise Exception("OK")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_dnsresolve)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'AFFILIATE_IPADDR'+ event_data = '1.1.1.1'+ event_module = 'example module'+ source_event = evt+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ with self.assertRaises(Exception) as cm:+ module.handleEvent(evt)++ self.assertEqual("OK", str(cm.exception))++ def test_handleEvent_event_data_raw_rir_data_containing_subdomain_should_return_internet_name_event(self):+ """+ Test handleEvent(self, event)+ """+ sf = SpiderFoot(self.default_options)++ module = sfp_dnsresolve()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ expected = 'INTERNET_NAME'+ if str(event.eventType) != expected:+ raise Exception(f"{event.eventType} != {expected}")++ expected = "www.spiderfoot.net"+ if str(event.data) != expected:+ raise Exception(f"{event.data} != {expected}")++ raise Exception("OK")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_dnsresolve)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'RAW_RIR_DATA'+ event_data = 'example data www.spiderfoot.net example data'+ event_module = 'example module'+ source_event = evt+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ with self.assertRaises(Exception) as cm:+ module.handleEvent(evt)++ self.assertEqual("OK", str(cm.exception))diff --git a/test/integration/modules/test_sfp_dnszonexfer.py b/test/integration/modules/test_sfp_dnszonexfer.pynew file mode 100644index 00000000..1dd40ae9--- /dev/null+++ b/test/integration/modules/test_sfp_dnszonexfer.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_dnszonexfer import sfp_dnszonexfer+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationDnsZoneXfer(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_dnszonexfer()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_dronebl.py b/test/integration/modules/test_sfp_dronebl.pynew file mode 100644index 00000000..3de06ff8--- /dev/null+++ b/test/integration/modules/test_sfp_dronebl.py@@ -0,0 +1,42 @@+import pytest+import unittest++from modules.sfp_dronebl import sfp_dronebl+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationDronebl(unittest.TestCase):++ def test_handleEvent_event_data_safe_ip_address_not_blocked_should_not_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_dronebl()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ raise Exception(f"Raised event {event.eventType}: {event.data}")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_dronebl)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'IP_ADDRESS'+ event_data = '1.0.0.1'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)+ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_duckduckgo.py b/test/integration/modules/test_sfp_duckduckgo.pynew file mode 100644index 00000000..dfd9b743--- /dev/null+++ b/test/integration/modules/test_sfp_duckduckgo.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_duckduckgo import sfp_duckduckgo+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationDuckduckgo(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_duckduckgo()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_email.py b/test/integration/modules/test_sfp_email.pynew file mode 100644index 00000000..0d7cd303--- /dev/null+++ b/test/integration/modules/test_sfp_email.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_email import sfp_email+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationEmail(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_email()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_emailcrawlr.py b/test/integration/modules/test_sfp_emailcrawlr.pynew file mode 100644index 00000000..5d6d5bf3--- /dev/null+++ b/test/integration/modules/test_sfp_emailcrawlr.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_emailcrawlr import sfp_emailcrawlr+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationemailcrawlr(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_emailcrawlr()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'EMAILADDR'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_emailformat.py b/test/integration/modules/test_sfp_emailformat.pynew file mode 100644index 00000000..d98b7f74--- /dev/null+++ b/test/integration/modules/test_sfp_emailformat.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_emailformat import sfp_emailformat+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationEmailFormat(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_emailformat()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_emailrep.py b/test/integration/modules/test_sfp_emailrep.pynew file mode 100644index 00000000..aedb433c--- /dev/null+++ b/test/integration/modules/test_sfp_emailrep.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_emailrep import sfp_emailrep+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationEmailrep(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_emailrep()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_emergingthreats.py b/test/integration/modules/test_sfp_emergingthreats.pynew file mode 100644index 00000000..33bdb250--- /dev/null+++ b/test/integration/modules/test_sfp_emergingthreats.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_emergingthreats import sfp_emergingthreats+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationEmergingthreats(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_emergingthreats()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_etherscan.py b/test/integration/modules/test_sfp_etherscan.pynew file mode 100644index 00000000..8076a394--- /dev/null+++ b/test/integration/modules/test_sfp_etherscan.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_etherscan import sfp_etherscan+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationEtherscan(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_etherscan()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_filemeta.py b/test/integration/modules/test_sfp_filemeta.pynew file mode 100644index 00000000..33c769c6--- /dev/null+++ b/test/integration/modules/test_sfp_filemeta.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_filemeta import sfp_filemeta+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationFilemeta(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_filemeta()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_flickr.py b/test/integration/modules/test_sfp_flickr.pynew file mode 100644index 00000000..7512a806--- /dev/null+++ b/test/integration/modules/test_sfp_flickr.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_flickr import sfp_flickr+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationFlickr(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_flickr()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_focsec.py b/test/integration/modules/test_sfp_focsec.pynew file mode 100644index 00000000..9b88950a--- /dev/null+++ b/test/integration/modules/test_sfp_focsec.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_focsec import sfp_focsec+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationFocsec(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_focsec()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_fortinet.py b/test/integration/modules/test_sfp_fortinet.pynew file mode 100644index 00000000..0fba030a--- /dev/null+++ b/test/integration/modules/test_sfp_fortinet.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_fortinet import sfp_fortinet+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationFortinet(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_fortinet()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_fraudguard.py b/test/integration/modules/test_sfp_fraudguard.pynew file mode 100644index 00000000..a738b009--- /dev/null+++ b/test/integration/modules/test_sfp_fraudguard.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_fraudguard import sfp_fraudguard+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationFraudguard(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_fraudguard()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_fsecure_riddler.py b/test/integration/modules/test_sfp_fsecure_riddler.pynew file mode 100644index 00000000..8cf94dbf--- /dev/null+++ b/test/integration/modules/test_sfp_fsecure_riddler.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_fsecure_riddler import sfp_fsecure_riddler+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationFsecureRiddler(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_fsecure_riddler()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_fullcontact.py b/test/integration/modules/test_sfp_fullcontact.pynew file mode 100644index 00000000..f5b66f68--- /dev/null+++ b/test/integration/modules/test_sfp_fullcontact.py@@ -0,0 +1,31 @@+import pytest+import unittest++from modules.sfp_fullcontact import sfp_fullcontact+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationFullContact(unittest.TestCase):++ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_fullcontact()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_fullhunt.py b/test/integration/modules/test_sfp_fullhunt.pynew file mode 100644index 00000000..92a40c3e--- /dev/null+++ b/test/integration/modules/test_sfp_fullhunt.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_fullhunt import sfp_fullhunt+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationFullhunt(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_fullhunt()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_github.py b/test/integration/modules/test_sfp_github.pynew file mode 100644index 00000000..630e314d--- /dev/null+++ b/test/integration/modules/test_sfp_github.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_github import sfp_github+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationGithub(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_github()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_gleif.py b/test/integration/modules/test_sfp_gleif.pynew file mode 100644index 00000000..fd93891c--- /dev/null+++ b/test/integration/modules/test_sfp_gleif.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_gleif import sfp_gleif+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationGleif(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_gleif()+ module.setup(sf, dict())++ target_value = '7ZW8QJWVPR4P1J1KQY45'+ target_type = 'LEI'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_googlemaps.py b/test/integration/modules/test_sfp_googlemaps.pynew file mode 100644index 00000000..8c4619b7--- /dev/null+++ b/test/integration/modules/test_sfp_googlemaps.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_googlemaps import sfp_googlemaps+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationGoogleMaps(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_googlemaps()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_googleobjectstorage.py b/test/integration/modules/test_sfp_googleobjectstorage.pynew file mode 100644index 00000000..20ecc173--- /dev/null+++ b/test/integration/modules/test_sfp_googleobjectstorage.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_googleobjectstorage import sfp_googleobjectstorage+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationGoogleObjectStorage(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_googleobjectstorage()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_googlesafebrowsing.py b/test/integration/modules/test_sfp_googlesafebrowsing.pynew file mode 100644index 00000000..85ab4574--- /dev/null+++ b/test/integration/modules/test_sfp_googlesafebrowsing.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_googlesafebrowsing import sfp_googlesafebrowsing+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationGoogleSafebrowsing(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_googlesafebrowsing()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_googlesearch.py b/test/integration/modules/test_sfp_googlesearch.pynew file mode 100644index 00000000..5c803e57--- /dev/null+++ b/test/integration/modules/test_sfp_googlesearch.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_googlesearch import sfp_googlesearch+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationGoogleSearch(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_googlesearch()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_gravatar.py b/test/integration/modules/test_sfp_gravatar.pynew file mode 100644index 00000000..60a6e321--- /dev/null+++ b/test/integration/modules/test_sfp_gravatar.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_gravatar import sfp_gravatar+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationGravatar(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_gravatar()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_grayhatwarfare.py b/test/integration/modules/test_sfp_grayhatwarfare.pynew file mode 100644index 00000000..8cd9ec46--- /dev/null+++ b/test/integration/modules/test_sfp_grayhatwarfare.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_grayhatwarfare import sfp_grayhatwarfare+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationGrayhatWarfare(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_grayhatwarfare()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_greensnow.py b/test/integration/modules/test_sfp_greensnow.pynew file mode 100644index 00000000..33bcb2fd--- /dev/null+++ b/test/integration/modules/test_sfp_greensnow.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_greensnow import sfp_greensnow+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationgreensnow(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_greensnow()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_grep_app.py b/test/integration/modules/test_sfp_grep_app.pynew file mode 100644index 00000000..0dee9946--- /dev/null+++ b/test/integration/modules/test_sfp_grep_app.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_grep_app import sfp_grep_app+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationGrepApp(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_grep_app()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_greynoise.py b/test/integration/modules/test_sfp_greynoise.pynew file mode 100644index 00000000..48260acf--- /dev/null+++ b/test/integration/modules/test_sfp_greynoise.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_greynoise import sfp_greynoise+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationGreynoise(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_greynoise()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_h1nobbdde.py b/test/integration/modules/test_sfp_h1nobbdde.pynew file mode 100644index 00000000..3b09024f--- /dev/null+++ b/test/integration/modules/test_sfp_h1nobbdde.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_h1nobbdde import sfp_h1nobbdde+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationH1nobbdde(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_h1nobbdde()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_hackertarget.py b/test/integration/modules/test_sfp_hackertarget.pynew file mode 100644index 00000000..3c20d407--- /dev/null+++ b/test/integration/modules/test_sfp_hackertarget.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_hackertarget import sfp_hackertarget+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationHackertarget(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_hackertarget()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_haveibeenpwned.py b/test/integration/modules/test_sfp_haveibeenpwned.pynew file mode 100644index 00000000..29b61e11--- /dev/null+++ b/test/integration/modules/test_sfp_haveibeenpwned.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_haveibeenpwned import sfp_haveibeenpwned+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationHaveibeenpwned(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_haveibeenpwned()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'EMAILADDR'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_honeypot.py b/test/integration/modules/test_sfp_honeypot.pynew file mode 100644index 00000000..162a86a0--- /dev/null+++ b/test/integration/modules/test_sfp_honeypot.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_honeypot import sfp_honeypot+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationHoneypot(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_honeypot()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_hosting.py b/test/integration/modules/test_sfp_hosting.pynew file mode 100644index 00000000..c3e2db26--- /dev/null+++ b/test/integration/modules/test_sfp_hosting.py@@ -0,0 +1,74 @@+import pytest+import unittest++from modules.sfp_hosting import sfp_hosting+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationHosting(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent_event_data_ip_address_hosted_should_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_hosting()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ expected = 'PROVIDER_HOSTING'+ if str(event.eventType) != expected:+ raise Exception(f"{event.eventType} != {expected}")++ expected = "Amazon AWS: http://www.amazon.com/aws/"+ if str(event.data) != expected:+ raise Exception(f"{event.data} != {expected}")++ raise Exception("OK")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_hosting)++ event_type = 'ROOT'+ event_data = '3.1.1.1'+ event_module = ''+ source_event = ''++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ with self.assertRaises(Exception) as cm:+ module.handleEvent(evt)++ self.assertEqual("OK", str(cm.exception))++ @unittest.skip("todo")+ def test_handleEvent_event_data_ip_address_not_hosted_should_not_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_hosting()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ raise Exception(f"Raised event {event.eventType}: {event.data}")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_hosting)++ event_type = 'ROOT'+ event_data = '127.0.0.1'+ event_module = ''+ source_event = ''++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)+ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_hostio.py b/test/integration/modules/test_sfp_hostio.pynew file mode 100644index 00000000..daf71c4f--- /dev/null+++ b/test/integration/modules/test_sfp_hostio.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_hostio import sfp_hostio+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationHostio(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_hostio()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_hunter.py b/test/integration/modules/test_sfp_hunter.pynew file mode 100644index 00000000..1c1df79d--- /dev/null+++ b/test/integration/modules/test_sfp_hunter.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_hunter import sfp_hunter+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationHunter(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_hunter()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_hybrid_analysis.py b/test/integration/modules/test_sfp_hybrid_analysis.pynew file mode 100644index 00000000..f360093a--- /dev/null+++ b/test/integration/modules/test_sfp_hybrid_analysis.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_hybrid_analysis import sfp_hybrid_analysis+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationHybridAnalysis(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_hybrid_analysis()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_iknowwhatyoudownload.py b/test/integration/modules/test_sfp_iknowwhatyoudownload.pynew file mode 100644index 00000000..f60bcc84--- /dev/null+++ b/test/integration/modules/test_sfp_iknowwhatyoudownload.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_iknowwhatyoudownload import sfp_iknowwhatyoudownload+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationIknowwhatyoudownload(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_iknowwhatyoudownload()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_instagram.py b/test/integration/modules/test_sfp_instagram.pynew file mode 100644index 00000000..ef888b31--- /dev/null+++ b/test/integration/modules/test_sfp_instagram.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_instagram import sfp_instagram+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationInstagram(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_instagram()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_intelx.py b/test/integration/modules/test_sfp_intelx.pynew file mode 100644index 00000000..7b8640d5--- /dev/null+++ b/test/integration/modules/test_sfp_intelx.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_intelx import sfp_intelx+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationIntelx(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_intelx()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_ipapico.py b/test/integration/modules/test_sfp_ipapico.pynew file mode 100644index 00000000..7c27878a--- /dev/null+++ b/test/integration/modules/test_sfp_ipapico.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_ipapico import sfp_ipapico+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationIpapico(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_ipapico()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_ipapicom.py b/test/integration/modules/test_sfp_ipapicom.pynew file mode 100644index 00000000..82d40f2e--- /dev/null+++ b/test/integration/modules/test_sfp_ipapicom.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_ipapicom import sfp_ipapicom+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationIpapicom(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_ipapicom()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_ipinfo.py b/test/integration/modules/test_sfp_ipinfo.pynew file mode 100644index 00000000..bd87e451--- /dev/null+++ b/test/integration/modules/test_sfp_ipinfo.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_ipinfo import sfp_ipinfo+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationIpinfo(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_ipinfo()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_ipqualityscore.py b/test/integration/modules/test_sfp_ipqualityscore.pynew file mode 100644index 00000000..97787a49--- /dev/null+++ b/test/integration/modules/test_sfp_ipqualityscore.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_ipqualityscore import sfp_ipqualityscore+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationIpqualityscore(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_ipqualityscore()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'PHONE_NUMBER'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_ipregistry.py b/test/integration/modules/test_sfp_ipregistry.pynew file mode 100644index 00000000..1e2ca448--- /dev/null+++ b/test/integration/modules/test_sfp_ipregistry.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_ipregistry import sfp_ipregistry+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationIpregistry(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_ipregistry()+ module.setup(sf, dict())++ target_value = "example target value"+ target_type = "IP_ADDRESS"+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = "ROOT"+ event_data = "example data"+ event_module = ""+ source_event = ""+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_ipstack.py b/test/integration/modules/test_sfp_ipstack.pynew file mode 100644index 00000000..2026eb96--- /dev/null+++ b/test/integration/modules/test_sfp_ipstack.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_ipstack import sfp_ipstack+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationIpstack(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_ipstack()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_isc.py b/test/integration/modules/test_sfp_isc.pynew file mode 100644index 00000000..adb5d335--- /dev/null+++ b/test/integration/modules/test_sfp_isc.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_isc import sfp_isc+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationIsc(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_isc()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_jsonwhoiscom.py b/test/integration/modules/test_sfp_jsonwhoiscom.pynew file mode 100644index 00000000..5a921ab3--- /dev/null+++ b/test/integration/modules/test_sfp_jsonwhoiscom.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_jsonwhoiscom import sfp_jsonwhoiscom+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationJsonwhoiscom(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_jsonwhoiscom()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_junkfiles.py b/test/integration/modules/test_sfp_junkfiles.pynew file mode 100644index 00000000..9a2fdf36--- /dev/null+++ b/test/integration/modules/test_sfp_junkfiles.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_junkfiles import sfp_junkfiles+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationJunkfiles(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_junkfiles()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_keybase.py b/test/integration/modules/test_sfp_keybase.pynew file mode 100644index 00000000..89f6ad66--- /dev/null+++ b/test/integration/modules/test_sfp_keybase.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_keybase import sfp_keybase+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationKeybase(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_keybase()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_koodous.py b/test/integration/modules/test_sfp_koodous.pynew file mode 100644index 00000000..84b0134d--- /dev/null+++ b/test/integration/modules/test_sfp_koodous.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_koodous import sfp_koodous+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationKoodous(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_koodous()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_leakix.py b/test/integration/modules/test_sfp_leakix.pynew file mode 100644index 00000000..be818ed8--- /dev/null+++ b/test/integration/modules/test_sfp_leakix.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_leakix import sfp_leakix+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationleakix(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_leakix()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_maltiverse.py b/test/integration/modules/test_sfp_maltiverse.pynew file mode 100644index 00000000..1880138d--- /dev/null+++ b/test/integration/modules/test_sfp_maltiverse.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_maltiverse import sfp_maltiverse+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationMaltiverse(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_maltiverse()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_malwarepatrol.py b/test/integration/modules/test_sfp_malwarepatrol.pynew file mode 100644index 00000000..3158c2ce--- /dev/null+++ b/test/integration/modules/test_sfp_malwarepatrol.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_malwarepatrol import sfp_malwarepatrol+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationMalwarepatrol(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_malwarepatrol()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_metadefender.py b/test/integration/modules/test_sfp_metadefender.pynew file mode 100644index 00000000..76a67b1a--- /dev/null+++ b/test/integration/modules/test_sfp_metadefender.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_metadefender import sfp_metadefender+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationMetadefender(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_metadefender()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_mnemonic.py b/test/integration/modules/test_sfp_mnemonic.pynew file mode 100644index 00000000..9137b369--- /dev/null+++ b/test/integration/modules/test_sfp_mnemonic.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_mnemonic import sfp_mnemonic+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationMnemonic(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_mnemonic()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_multiproxy.py b/test/integration/modules/test_sfp_multiproxy.pynew file mode 100644index 00000000..4e28347c--- /dev/null+++ b/test/integration/modules/test_sfp_multiproxy.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_multiproxy import sfp_multiproxy+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationMultiproxy(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_multiproxy()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_myspace.py b/test/integration/modules/test_sfp_myspace.pynew file mode 100644index 00000000..217b295c--- /dev/null+++ b/test/integration/modules/test_sfp_myspace.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_myspace import sfp_myspace+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationMyspace(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_myspace()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_nameapi.py b/test/integration/modules/test_sfp_nameapi.pynew file mode 100644index 00000000..ab732bde--- /dev/null+++ b/test/integration/modules/test_sfp_nameapi.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_nameapi import sfp_nameapi+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationNameapi(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_nameapi()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'EMAILADDR'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_networksdb.py b/test/integration/modules/test_sfp_networksdb.pynew file mode 100644index 00000000..59d60ec8--- /dev/null+++ b/test/integration/modules/test_sfp_networksdb.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_networksdb import sfp_networksdb+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationNetworksdb(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_networksdb()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_neutrinoapi.py b/test/integration/modules/test_sfp_neutrinoapi.pynew file mode 100644index 00000000..683c9ba3--- /dev/null+++ b/test/integration/modules/test_sfp_neutrinoapi.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_neutrinoapi import sfp_neutrinoapi+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationNeutrinoapi(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_neutrinoapi()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_numverify.py b/test/integration/modules/test_sfp_numverify.pynew file mode 100644index 00000000..8121c58a--- /dev/null+++ b/test/integration/modules/test_sfp_numverify.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_numverify import sfp_numverify+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationNumverify(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_numverify()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_onioncity.py b/test/integration/modules/test_sfp_onioncity.pynew file mode 100644index 00000000..d30e72ba--- /dev/null+++ b/test/integration/modules/test_sfp_onioncity.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_onioncity import sfp_onioncity+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationOnioncity(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_onioncity()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_onionsearchengine.py b/test/integration/modules/test_sfp_onionsearchengine.pynew file mode 100644index 00000000..c9347129--- /dev/null+++ b/test/integration/modules/test_sfp_onionsearchengine.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_onionsearchengine import sfp_onionsearchengine+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationOnionsearchengine(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_onionsearchengine()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_onyphe.py b/test/integration/modules/test_sfp_onyphe.pynew file mode 100644index 00000000..3a36323d--- /dev/null+++ b/test/integration/modules/test_sfp_onyphe.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_onyphe import sfp_onyphe+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationOnyphe(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_onyphe()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_open_passive_dns_database.py b/test/integration/modules/test_sfp_open_passive_dns_database.pynew file mode 100644index 00000000..4ca6768c--- /dev/null+++ b/test/integration/modules/test_sfp_open_passive_dns_database.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_open_passive_dns_database import sfp_open_passive_dns_database+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationOpenPassiveDnsDatabase(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_open_passive_dns_database()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_openbugbounty.py b/test/integration/modules/test_sfp_openbugbounty.pynew file mode 100644index 00000000..9f30bb39--- /dev/null+++ b/test/integration/modules/test_sfp_openbugbounty.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_openbugbounty import sfp_openbugbounty+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationOpenbugbounty(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_openbugbounty()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_opencorporates.py b/test/integration/modules/test_sfp_opencorporates.pynew file mode 100644index 00000000..0e71cd67--- /dev/null+++ b/test/integration/modules/test_sfp_opencorporates.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_opencorporates import sfp_opencorporates+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationOpencorporates(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_opencorporates()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_opendns.py b/test/integration/modules/test_sfp_opendns.pynew file mode 100644index 00000000..11ea157c--- /dev/null+++ b/test/integration/modules/test_sfp_opendns.py@@ -0,0 +1,84 @@+import pytest+import unittest++from modules.sfp_opendns import sfp_opendns+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationOpendns(unittest.TestCase):++ def test_handleEvent_event_data_safe_internet_name_not_blocked_should_not_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_opendns()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ raise Exception(f"Raised event {event.eventType}: {event.data}")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_opendns)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'INTERNET_NAME'+ event_data = 'opendns.com'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)+ result = module.handleEvent(evt)++ self.assertIsNone(result)++ def test_handleEvent_event_data_adult_internet_name_blocked_should_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_opendns()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ expected = 'BLACKLISTED_INTERNET_NAME'+ if str(event.eventType) != expected:+ raise Exception(f"{event.eventType} != {expected}")++ expected = 'OpenDNS - Adult [pornhub.com]'+ if str(event.data) != expected:+ raise Exception(f"{event.data} != {expected}")++ raise Exception("OK")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_opendns)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'INTERNET_NAME'+ event_data = 'pornhub.com'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ with self.assertRaises(Exception) as cm:+ module.handleEvent(evt)++ self.assertEqual("OK", str(cm.exception))diff --git a/test/integration/modules/test_sfp_opennic.py b/test/integration/modules/test_sfp_opennic.pynew file mode 100644index 00000000..7e4db381--- /dev/null+++ b/test/integration/modules/test_sfp_opennic.py@@ -0,0 +1,47 @@+import pytest+import unittest++from modules.sfp_opennic import sfp_opennic+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationOpenNic(unittest.TestCase):++ def test_handleEvent_event_data_internet_name_with_opennic_tld_should_return_ip_address_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_opennic()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ expected = 'IP_ADDRESS'+ if str(event.eventType) != expected:+ raise Exception(f"{event.eventType} != {expected}")++ raise Exception("OK")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_opennic)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'INTERNET_NAME'+ event_data = 'opennic.glue'+ event_module = 'example module'+ source_event = evt+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ with self.assertRaises(Exception) as cm:+ module.handleEvent(evt)++ self.assertEqual("OK", str(cm.exception))diff --git a/test/integration/modules/test_sfp_openphish.py b/test/integration/modules/test_sfp_openphish.pynew file mode 100644index 00000000..91a5f08b--- /dev/null+++ b/test/integration/modules/test_sfp_openphish.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_openphish import sfp_openphish+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationOpenphish(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_openphish()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_openstreetmap.py b/test/integration/modules/test_sfp_openstreetmap.pynew file mode 100644index 00000000..699e1859--- /dev/null+++ b/test/integration/modules/test_sfp_openstreetmap.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_openstreetmap import sfp_openstreetmap+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationOpenstreetmap(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_openstreetmap()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_pageinfo.py b/test/integration/modules/test_sfp_pageinfo.pynew file mode 100644index 00000000..2b91f574--- /dev/null+++ b/test/integration/modules/test_sfp_pageinfo.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_pageinfo import sfp_pageinfo+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationPageInfo(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_pageinfo()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_pastebin.py b/test/integration/modules/test_sfp_pastebin.pynew file mode 100644index 00000000..c398b057--- /dev/null+++ b/test/integration/modules/test_sfp_pastebin.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_pastebin import sfp_pastebin+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationPastebin(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_pastebin()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_pgp.py b/test/integration/modules/test_sfp_pgp.pynew file mode 100644index 00000000..48c7bd1c--- /dev/null+++ b/test/integration/modules/test_sfp_pgp.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_pgp import sfp_pgp+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationPgp(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_pgp()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_phishstats.py b/test/integration/modules/test_sfp_phishstats.pynew file mode 100644index 00000000..3926af71--- /dev/null+++ b/test/integration/modules/test_sfp_phishstats.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_phishstats import sfp_phishstats+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationPhishstats(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_phishstats()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_phishtank.py b/test/integration/modules/test_sfp_phishtank.pynew file mode 100644index 00000000..17b4101b--- /dev/null+++ b/test/integration/modules/test_sfp_phishtank.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_phishtank import sfp_phishtank+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationPhishtank(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_phishtank()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_portscan_tcp.py b/test/integration/modules/test_sfp_portscan_tcp.pynew file mode 100644index 00000000..2e46eb66--- /dev/null+++ b/test/integration/modules/test_sfp_portscan_tcp.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_portscan_tcp import sfp_portscan_tcp+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationPortscanTcp(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_portscan_tcp()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_projectdiscovery.py b/test/integration/modules/test_sfp_projectdiscovery.pynew file mode 100644index 00000000..7d69efef--- /dev/null+++ b/test/integration/modules/test_sfp_projectdiscovery.py@@ -0,0 +1,31 @@+import pytest+import unittest+from modules.sfp_projectdiscovery import sfp_projectdiscovery+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationProjectdiscovery(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_projectdiscovery()+ module.setup(sf, dict())++ target_value = "example target value"+ target_type = "IP_ADDRESS"+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = "ROOT"+ event_data = "example data"+ event_module = ""+ source_event = ""+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_psbdmp.py b/test/integration/modules/test_sfp_psbdmp.pynew file mode 100644index 00000000..a9d3ae59--- /dev/null+++ b/test/integration/modules/test_sfp_psbdmp.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_psbdmp import sfp_psbdmp+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationPsbdmp(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_psbdmp()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_pulsedive.py b/test/integration/modules/test_sfp_pulsedive.pynew file mode 100644index 00000000..14551651--- /dev/null+++ b/test/integration/modules/test_sfp_pulsedive.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_pulsedive import sfp_pulsedive+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationPulsedive(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_pulsedive()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_punkspider.py b/test/integration/modules/test_sfp_punkspider.pynew file mode 100644index 00000000..58bc7a24--- /dev/null+++ b/test/integration/modules/test_sfp_punkspider.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_punkspider import sfp_punkspider+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationPunkspider(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_punkspider()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_quad9.py b/test/integration/modules/test_sfp_quad9.pynew file mode 100644index 00000000..8294bdd5--- /dev/null+++ b/test/integration/modules/test_sfp_quad9.py@@ -0,0 +1,42 @@+import pytest+import unittest++from modules.sfp_quad9 import sfp_quad9+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationQuad9(unittest.TestCase):++ def test_handleEvent_event_data_safe_internet_name_not_blocked_should_not_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_quad9()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ raise Exception(f"Raised event {event.eventType}: {event.data}")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_quad9)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'INTERNET_NAME'+ event_data = 'quad9.net'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)+ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_recondev.py b/test/integration/modules/test_sfp_recondev.pynew file mode 100644index 00000000..e9a85e68--- /dev/null+++ b/test/integration/modules/test_sfp_recondev.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_recondev import sfp_recondev+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationRecondev(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_recondev()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_reversewhois.py b/test/integration/modules/test_sfp_reversewhois.pynew file mode 100644index 00000000..db46dc34--- /dev/null+++ b/test/integration/modules/test_sfp_reversewhois.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_reversewhois import sfp_reversewhois+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationReversewhois(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_reversewhois()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'DOMAIN_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_ripe.py b/test/integration/modules/test_sfp_ripe.pynew file mode 100644index 00000000..d9653175--- /dev/null+++ b/test/integration/modules/test_sfp_ripe.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_ripe import sfp_ripe+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationRipe(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_ripe()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_riskiq.py b/test/integration/modules/test_sfp_riskiq.pynew file mode 100644index 00000000..35a0abf1--- /dev/null+++ b/test/integration/modules/test_sfp_riskiq.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_riskiq import sfp_riskiq+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationRiskiq(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_riskiq()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_robtex.py b/test/integration/modules/test_sfp_robtex.pynew file mode 100644index 00000000..ff958f27--- /dev/null+++ b/test/integration/modules/test_sfp_robtex.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_robtex import sfp_robtex+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationRobtex(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_robtex()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_s3bucket.py b/test/integration/modules/test_sfp_s3bucket.pynew file mode 100644index 00000000..44410622--- /dev/null+++ b/test/integration/modules/test_sfp_s3bucket.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_s3bucket import sfp_s3bucket+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationS3bucket(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_s3bucket()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_scylla.py b/test/integration/modules/test_sfp_scylla.pynew file mode 100644index 00000000..64cd7eb7--- /dev/null+++ b/test/integration/modules/test_sfp_scylla.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_scylla import sfp_scylla+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationScylla(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_scylla()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_searchcode.py b/test/integration/modules/test_sfp_searchcode.pynew file mode 100644index 00000000..ba27394d--- /dev/null+++ b/test/integration/modules/test_sfp_searchcode.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_searchcode import sfp_searchcode+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationCodesearch(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_searchcode()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'DOMAIN_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_securitytrails.py b/test/integration/modules/test_sfp_securitytrails.pynew file mode 100644index 00000000..caf620b3--- /dev/null+++ b/test/integration/modules/test_sfp_securitytrails.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_securitytrails import sfp_securitytrails+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationSecuritytrails(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_securitytrails()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_seon.py b/test/integration/modules/test_sfp_seon.pynew file mode 100644index 00000000..193de21e--- /dev/null+++ b/test/integration/modules/test_sfp_seon.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_seon import sfp_seon+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationseon(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_seon()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_shodan.py b/test/integration/modules/test_sfp_shodan.pynew file mode 100644index 00000000..d670267b--- /dev/null+++ b/test/integration/modules/test_sfp_shodan.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_shodan import sfp_shodan+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationShodan(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_shodan()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_similar.py b/test/integration/modules/test_sfp_similar.pynew file mode 100644index 00000000..461f622d--- /dev/null+++ b/test/integration/modules/test_sfp_similar.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_similar import sfp_similar+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationSimilar(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_similar()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_skymem.py b/test/integration/modules/test_sfp_skymem.pynew file mode 100644index 00000000..943bdeb1--- /dev/null+++ b/test/integration/modules/test_sfp_skymem.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_skymem import sfp_skymem+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationSkymem(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_skymem()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_slideshare.py b/test/integration/modules/test_sfp_slideshare.pynew file mode 100644index 00000000..b16d6c2a--- /dev/null+++ b/test/integration/modules/test_sfp_slideshare.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_slideshare import sfp_slideshare+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationSlideshare(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_slideshare()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_snov.py b/test/integration/modules/test_sfp_snov.pynew file mode 100644index 00000000..3ffe85a6--- /dev/null+++ b/test/integration/modules/test_sfp_snov.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_snov import sfp_snov+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationSnov(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_snov()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_sociallinks.py b/test/integration/modules/test_sfp_sociallinks.pynew file mode 100644index 00000000..661b763c--- /dev/null+++ b/test/integration/modules/test_sfp_sociallinks.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_sociallinks import sfp_sociallinks+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationsociallinks(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_sociallinks()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'EMAILADDR'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_socialprofiles.py b/test/integration/modules/test_sfp_socialprofiles.pynew file mode 100644index 00000000..65927ee8--- /dev/null+++ b/test/integration/modules/test_sfp_socialprofiles.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_socialprofiles import sfp_socialprofiles+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationSocialprofiles(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_socialprofiles()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'HUMAN_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_sorbs.py b/test/integration/modules/test_sfp_sorbs.pynew file mode 100644index 00000000..226f582c--- /dev/null+++ b/test/integration/modules/test_sfp_sorbs.py@@ -0,0 +1,42 @@+import pytest+import unittest++from modules.sfp_sorbs import sfp_sorbs+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationSorbs(unittest.TestCase):++ def test_handleEvent_event_data_safe_ip_address_not_blocked_should_not_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_sorbs()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ raise Exception(f"Raised event {event.eventType}: {event.data}")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_sorbs)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'IP_ADDRESS'+ event_data = '1.0.0.1'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)+ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_spamcop.py b/test/integration/modules/test_sfp_spamcop.pynew file mode 100644index 00000000..e614fa33--- /dev/null+++ b/test/integration/modules/test_sfp_spamcop.py@@ -0,0 +1,42 @@+import pytest+import unittest++from modules.sfp_spamcop import sfp_spamcop+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationSpamcop(unittest.TestCase):++ def test_handleEvent_event_data_safe_ip_address_not_blocked_should_not_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_spamcop()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ raise Exception(f"Raised event {event.eventType}: {event.data}")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_spamcop)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'IP_ADDRESS'+ event_data = '1.0.0.1'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)+ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_spamhaus.py b/test/integration/modules/test_sfp_spamhaus.pynew file mode 100644index 00000000..0ea64417--- /dev/null+++ b/test/integration/modules/test_sfp_spamhaus.py@@ -0,0 +1,42 @@+import pytest+import unittest++from modules.sfp_spamhaus import sfp_spamhaus+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationSpamhaus(unittest.TestCase):++ def test_handleEvent_event_data_safe_ip_address_not_blocked_should_not_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_spamhaus()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ raise Exception(f"Raised event {event.eventType}: {event.data}")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_spamhaus)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'IP_ADDRESS'+ event_data = '1.0.0.1'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)+ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_spider.py b/test/integration/modules/test_sfp_spider.pynew file mode 100644index 00000000..6a5a523b--- /dev/null+++ b/test/integration/modules/test_sfp_spider.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_spider import sfp_spider+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationSpider(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_spider()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_spur.py b/test/integration/modules/test_sfp_spur.pynew file mode 100644index 00000000..d1ce49fa--- /dev/null+++ b/test/integration/modules/test_sfp_spur.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_spur import sfp_spur+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationSpur(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_spur()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_spyonweb.py b/test/integration/modules/test_sfp_spyonweb.pynew file mode 100644index 00000000..74435ffb--- /dev/null+++ b/test/integration/modules/test_sfp_spyonweb.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_spyonweb import sfp_spyonweb+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationSpyonweb(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_spyonweb()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_spyse.py b/test/integration/modules/test_sfp_spyse.pynew file mode 100644index 00000000..05ceb04b--- /dev/null+++ b/test/integration/modules/test_sfp_spyse.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_spyse import sfp_spyse+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationSpyse(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_spyse()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_sslcert.py b/test/integration/modules/test_sfp_sslcert.pynew file mode 100644index 00000000..1ff27007--- /dev/null+++ b/test/integration/modules/test_sfp_sslcert.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_sslcert import sfp_sslcert+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationSslCert(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_sslcert()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_stackoverflow.py b/test/integration/modules/test_sfp_stackoverflow.pynew file mode 100644index 00000000..7b840f2f--- /dev/null+++ b/test/integration/modules/test_sfp_stackoverflow.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_stackoverflow import sfp_stackoverflow+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationStackoverflow(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_stackoverflow()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_stevenblack_hosts.py b/test/integration/modules/test_sfp_stevenblack_hosts.pynew file mode 100644index 00000000..99bf85bb--- /dev/null+++ b/test/integration/modules/test_sfp_stevenblack_hosts.py@@ -0,0 +1,94 @@+import pytest+import unittest++from modules.sfp_stevenblack_hosts import sfp_stevenblack_hosts+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationStevenblackHosts(unittest.TestCase):++ def test_handleEvent_event_data_affiliate_internet_name_matching_ad_server_should_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_stevenblack_hosts()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ module.opts['_fetchtimeout'] = 15+ module.optdescs['_fetchtimeout'] = ''+ module.opts['_useragent'] = ''+ module.optdescs['_useragent'] = ''++ def new_notifyListeners(self, event):+ expected = 'MALICIOUS_AFFILIATE_INTERNET_NAME'+ if str(event.eventType) != expected:+ raise Exception(f"{event.eventType} != {expected}")++ expected = 'Steven Black Hosts Blocklist [ads.google.com]\n<SFURL>https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts</SFURL>'+ if str(event.data) != expected:+ raise Exception(f"{event.data} != {expected}")++ raise Exception("OK")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_stevenblack_hosts)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'AFFILIATE_INTERNET_NAME'+ event_data = 'ads.google.com'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ with self.assertRaises(Exception) as cm:+ module.handleEvent(evt)++ self.assertEqual("OK", str(cm.exception))++ def test_handleEvent_event_data_affiliate_internet_name_not_matching_ad_server_should_not_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_stevenblack_hosts()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ module.opts['_fetchtimeout'] = 15+ module.optdescs['_fetchtimeout'] = ''+ module.opts['_useragent'] = ''+ module.optdescs['_useragent'] = ''++ def new_notifyListeners(self, event):+ raise Exception(f"Raised event {event.eventType}: {event.data}")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_stevenblack_hosts)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'AFFILIATE_INTERNET_NAME'+ event_data = 'no.ads.safe.local'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)+ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_subdomain_takeover.py b/test/integration/modules/test_sfp_subdomain_takeover.pynew file mode 100644index 00000000..b7d57ac2--- /dev/null+++ b/test/integration/modules/test_sfp_subdomain_takeover.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_subdomain_takeover import sfp_subdomain_takeover+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationSubdomainTakeover(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_subdomain_takeover()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_sublist3r.py b/test/integration/modules/test_sfp_sublist3r.pynew file mode 100644index 00000000..dc9c203c--- /dev/null+++ b/test/integration/modules/test_sfp_sublist3r.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_sublist3r import sfp_sublist3r+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationSublist3r(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_sublist3r()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_surbl.py b/test/integration/modules/test_sfp_surbl.pynew file mode 100644index 00000000..cbd7bc52--- /dev/null+++ b/test/integration/modules/test_sfp_surbl.py@@ -0,0 +1,42 @@+import pytest+import unittest++from modules.sfp_surbl import sfp_surbl+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationSurbl(unittest.TestCase):++ def test_handleEvent_event_data_safe_ip_address_not_blocked_should_not_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_surbl()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ raise Exception(f"Raised event {event.eventType}: {event.data}")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_surbl)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'IP_ADDRESS'+ event_data = '1.0.0.1'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)+ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_talosintel.py b/test/integration/modules/test_sfp_talosintel.pynew file mode 100644index 00000000..f6c69ece--- /dev/null+++ b/test/integration/modules/test_sfp_talosintel.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_talosintel import sfp_talosintel+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationTalosintel(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_talosintel()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_textmagic.py b/test/integration/modules/test_sfp_textmagic.pynew file mode 100644index 00000000..cce63517--- /dev/null+++ b/test/integration/modules/test_sfp_textmagic.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_textmagic import sfp_textmagic+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationTextmagic(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_textmagic()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'PHONE_NUMBER'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_threatcrowd.py b/test/integration/modules/test_sfp_threatcrowd.pynew file mode 100644index 00000000..98138b3f--- /dev/null+++ b/test/integration/modules/test_sfp_threatcrowd.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_threatcrowd import sfp_threatcrowd+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationThreatcrowd(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_threatcrowd()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_threatfox.py b/test/integration/modules/test_sfp_threatfox.pynew file mode 100644index 00000000..fc6b7622--- /dev/null+++ b/test/integration/modules/test_sfp_threatfox.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_threatfox import sfp_threatfox+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationThreatFox(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_threatfox()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_threatminer.py b/test/integration/modules/test_sfp_threatminer.pynew file mode 100644index 00000000..f3f48415--- /dev/null+++ b/test/integration/modules/test_sfp_threatminer.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_threatminer import sfp_threatminer+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationThreatminer(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_threatminer()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_tldsearch.py b/test/integration/modules/test_sfp_tldsearch.pynew file mode 100644index 00000000..dbb69c78--- /dev/null+++ b/test/integration/modules/test_sfp_tldsearch.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_tldsearch import sfp_tldsearch+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationTldsearch(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_tldsearch()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_torch.py b/test/integration/modules/test_sfp_torch.pynew file mode 100644index 00000000..1651ac0e--- /dev/null+++ b/test/integration/modules/test_sfp_torch.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_torch import sfp_torch+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationTorch(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_torch()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_torexits.py b/test/integration/modules/test_sfp_torexits.pynew file mode 100644index 00000000..a27b16f1--- /dev/null+++ b/test/integration/modules/test_sfp_torexits.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_torexits import sfp_torexits+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationTorExits(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_torexits()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_trashpanda.py b/test/integration/modules/test_sfp_trashpanda.pynew file mode 100644index 00000000..0e663949--- /dev/null+++ b/test/integration/modules/test_sfp_trashpanda.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_trashpanda import sfp_trashpanda+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationTrashpanda(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_trashpanda()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'EMAILADDR'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_trumail.py b/test/integration/modules/test_sfp_trumail.pynew file mode 100644index 00000000..3c243a25--- /dev/null+++ b/test/integration/modules/test_sfp_trumail.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_trumail import sfp_trumail+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationTrumail(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_trumail()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'EMAILADDR'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_twilio.py b/test/integration/modules/test_sfp_twilio.pynew file mode 100644index 00000000..0a0d8f10--- /dev/null+++ b/test/integration/modules/test_sfp_twilio.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_twilio import sfp_twilio+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationTwilio(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_twilio()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_twitter.py b/test/integration/modules/test_sfp_twitter.pynew file mode 100644index 00000000..0fd11b33--- /dev/null+++ b/test/integration/modules/test_sfp_twitter.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_twitter import sfp_twitter+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationTwitter(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_twitter()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_uceprotect.py b/test/integration/modules/test_sfp_uceprotect.pynew file mode 100644index 00000000..09079c7e--- /dev/null+++ b/test/integration/modules/test_sfp_uceprotect.py@@ -0,0 +1,42 @@+import pytest+import unittest++from modules.sfp_uceprotect import sfp_uceprotect+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationUceprotect(unittest.TestCase):++ def test_handleEvent_event_data_safe_ip_address_not_blocked_should_not_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_uceprotect()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ raise Exception(f"Raised event {event.eventType}: {event.data}")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_uceprotect)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'IP_ADDRESS'+ event_data = '1.0.0.1'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)+ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_urlscan.py b/test/integration/modules/test_sfp_urlscan.pynew file mode 100644index 00000000..0136d6cb--- /dev/null+++ b/test/integration/modules/test_sfp_urlscan.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_urlscan import sfp_urlscan+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationUrlscan(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_urlscan()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_venmo.py b/test/integration/modules/test_sfp_venmo.pynew file mode 100644index 00000000..2a995e22--- /dev/null+++ b/test/integration/modules/test_sfp_venmo.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_venmo import sfp_venmo+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationVenmo(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_venmo()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_viewdns.py b/test/integration/modules/test_sfp_viewdns.pynew file mode 100644index 00000000..06f95d0a--- /dev/null+++ b/test/integration/modules/test_sfp_viewdns.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_viewdns import sfp_viewdns+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationViewdns(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_viewdns()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_virustotal.py b/test/integration/modules/test_sfp_virustotal.pynew file mode 100644index 00000000..d37e50a0--- /dev/null+++ b/test/integration/modules/test_sfp_virustotal.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_virustotal import sfp_virustotal+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationVirustotal(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_virustotal()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_voipbl.py b/test/integration/modules/test_sfp_voipbl.pynew file mode 100644index 00000000..bf475004--- /dev/null+++ b/test/integration/modules/test_sfp_voipbl.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_voipbl import sfp_voipbl+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationVoipbl(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_voipbl()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_vxvault.py b/test/integration/modules/test_sfp_vxvault.pynew file mode 100644index 00000000..4473b3a0--- /dev/null+++ b/test/integration/modules/test_sfp_vxvault.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_vxvault import sfp_vxvault+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationVxvault(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_vxvault()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_webserver.py b/test/integration/modules/test_sfp_webserver.pynew file mode 100644index 00000000..72a4ea2f--- /dev/null+++ b/test/integration/modules/test_sfp_webserver.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_webserver import sfp_webserver+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationWebserver(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_webserver()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_whatcms.py b/test/integration/modules/test_sfp_whatcms.pynew file mode 100644index 00000000..dea0de1c--- /dev/null+++ b/test/integration/modules/test_sfp_whatcms.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_whatcms import sfp_whatcms+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationWhatCMS(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_whatcms()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_whois.py b/test/integration/modules/test_sfp_whois.pynew file mode 100644index 00000000..f0dee2d2--- /dev/null+++ b/test/integration/modules/test_sfp_whois.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_whois import sfp_whois+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationwhois(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_whois()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_whoisology.py b/test/integration/modules/test_sfp_whoisology.pynew file mode 100644index 00000000..0abd5981--- /dev/null+++ b/test/integration/modules/test_sfp_whoisology.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_whoisology import sfp_whoisology+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationWhoisology(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_whoisology()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_whoxy.py b/test/integration/modules/test_sfp_whoxy.pynew file mode 100644index 00000000..cc66f4c8--- /dev/null+++ b/test/integration/modules/test_sfp_whoxy.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_whoxy import sfp_whoxy+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationWhoxy(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_whoxy()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_wigle.py b/test/integration/modules/test_sfp_wigle.pynew file mode 100644index 00000000..a3f336ee--- /dev/null+++ b/test/integration/modules/test_sfp_wigle.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_wigle import sfp_wigle+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationWigle(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_wigle()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_wikileaks.py b/test/integration/modules/test_sfp_wikileaks.pynew file mode 100644index 00000000..6f1d3612--- /dev/null+++ b/test/integration/modules/test_sfp_wikileaks.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_wikileaks import sfp_wikileaks+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationWikileaks(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_wikileaks()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_wikipediaedits.py b/test/integration/modules/test_sfp_wikipediaedits.pynew file mode 100644index 00000000..ed1dcc8a--- /dev/null+++ b/test/integration/modules/test_sfp_wikipediaedits.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_wikipediaedits import sfp_wikipediaedits+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationWikipediaedits(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_wikipediaedits()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_xforce.py b/test/integration/modules/test_sfp_xforce.pynew file mode 100644index 00000000..99af596d--- /dev/null+++ b/test/integration/modules/test_sfp_xforce.py@@ -0,0 +1,33 @@+import pytest+import unittest++from modules.sfp_xforce import sfp_xforce+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationXforce(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_xforce()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/integration/modules/test_sfp_yandexdns.py b/test/integration/modules/test_sfp_yandexdns.pynew file mode 100644index 00000000..9f6a8f80--- /dev/null+++ b/test/integration/modules/test_sfp_yandexdns.py@@ -0,0 +1,84 @@+import pytest+import unittest++from modules.sfp_yandexdns import sfp_yandexdns+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationYandexDns(unittest.TestCase):++ def test_handleEvent_event_data_safe_internet_name_not_blocked_should_not_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_yandexdns()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ raise Exception(f"Raised event {event.eventType}: {event.data}")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_yandexdns)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'INTERNET_NAME'+ event_data = 'yandex.com'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)+ result = module.handleEvent(evt)++ self.assertIsNone(result)++ def test_handleEvent_event_data_adult_internet_name_blocked_should_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_yandexdns()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ expected = 'BLACKLISTED_INTERNET_NAME'+ if str(event.eventType) != expected:+ raise Exception(f"{event.eventType} != {expected}")++ expected = 'Yandex - Adult [pornhub.com]'+ if str(event.data) != expected:+ raise Exception(f"{event.data} != {expected}")++ raise Exception("OK")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_yandexdns)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'INTERNET_NAME'+ event_data = 'pornhub.com'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ with self.assertRaises(Exception) as cm:+ module.handleEvent(evt)++ self.assertEqual("OK", str(cm.exception))diff --git a/test/integration/modules/test_sfp_zetalytics.py b/test/integration/modules/test_sfp_zetalytics.pynew file mode 100644index 00000000..02635dcf--- /dev/null+++ b/test/integration/modules/test_sfp_zetalytics.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_zetalytics import sfp_zetalytics+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationZetalytics(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_zetalytics()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/integration/modules/test_sfp_zoneh.py b/test/integration/modules/test_sfp_zoneh.pynew file mode 100644index 00000000..2662dd77--- /dev/null+++ b/test/integration/modules/test_sfp_zoneh.py@@ -0,0 +1,32 @@+import pytest+import unittest++from modules.sfp_zoneh import sfp_zoneh+from sflib import SpiderFoot+from spiderfoot import SpiderFootEvent, SpiderFootTarget+++class TestModuleIntegrationZoneh(unittest.TestCase):++ @unittest.skip("todo")+ def test_handleEvent(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_zoneh()+ module.setup(sf, dict())++ target_value = 'example target value'+ target_type = 'IP_ADDRESS'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ result = module.handleEvent(evt)++ self.assertIsNone(result)diff --git a/test/run b/test/runindex 5e92ed50..663fdb27 100755--- a/test/run+++ b/test/run@@ -5,4 +5,4 @@# Must be run from SpiderFoot root directory; ie:# ./test/run-time python3 -m pytest -n auto --flake8 --dist loadfile --durations=5 --cov-report html --cov=. .+time python3 -m pytest -n auto --flake8 --dist loadfile --ignore=test/integration/modules/ --durations=5 --cov-report html --cov=. .diff --git a/test/unit/modules/test_sfp__stor_db.py b/test/unit/modules/test_sfp__stor_db.pyindex f7d7e2ea..1316e7f6 100644--- a/test/unit/modules/test_sfp__stor_db.py+++ b/test/unit/modules/test_sfp__stor_db.py@@ -1,29 +1,20 @@-# test_sfp__stor_db.pyimport pytestimport unittestfrom modules.sfp__stor_db import sfp__stor_dbfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModule_stor_db(unittest.TestCase):- """- Test modules.sfp__stor_db- """+class TestModuleStor_db(unittest.TestCase):- @unittest.skip("todo")+ @unittest.skip("This module contains an extra private option")def test_opts(self):module = sfp__stor_db()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp__stor_db()module.setup(sf, dict())@@ -34,28 +25,3 @@ class TestModule_stor_db(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp__stor_db()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp__stor_db()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp__stor_stdout.py b/test/unit/modules/test_sfp__stor_stdout.pyindex 294d5f12..a5f47da6 100644--- a/test/unit/modules/test_sfp__stor_stdout.py+++ b/test/unit/modules/test_sfp__stor_stdout.py@@ -1,29 +1,20 @@-# test_sfp__stor_stdout.pyimport pytestimport unittestfrom modules.sfp__stor_stdout import sfp__stor_stdoutfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModule_stor_stdout(unittest.TestCase):- """- Test modules.sfp__stor_stdout- """+class TestModuleStor_stdout(unittest.TestCase):- @unittest.skip("todo")+ @unittest.skip("This module contains an extra private option")def test_opts(self):module = sfp__stor_stdout()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp__stor_stdout()module.setup(sf, dict())@@ -34,28 +25,3 @@ class TestModule_stor_stdout(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp__stor_stdout()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp__stor_stdout()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_abstractapi.py b/test/unit/modules/test_sfp_abstractapi.pyindex b1f17aac..c994d3fe 100644--- a/test/unit/modules/test_sfp_abstractapi.py+++ b/test/unit/modules/test_sfp_abstractapi.py@@ -1,4 +1,3 @@-# test_sfp_abstractapi.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleAbstractapi(unittest.TestCase):- """- Test modules.sfp_abstractapi- """def test_opts(self):module = sfp_abstractapi()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_abstractapi()module.setup(sf, dict())@@ -59,9 +51,6 @@ class TestModuleAbstractapi(unittest.TestCase):self.assertTrue(module.errorState)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_abstractapi()diff --git a/test/unit/modules/test_sfp_abusech.py b/test/unit/modules/test_sfp_abusech.pyindex 6928efdb..a74919c6 100644--- a/test/unit/modules/test_sfp_abusech.py+++ b/test/unit/modules/test_sfp_abusech.py@@ -1,28 +1,19 @@-# test_sfp_abusech.pyimport pytestimport unittestfrom modules.sfp_abusech import sfp_abusechfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleabusech(unittest.TestCase):- """- Test modules.sfp_abusech- """+class TestModuleAbusech(unittest.TestCase):def test_opts(self):module = sfp_abusech()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_abusech()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuleabusech(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_abusech()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_abusech()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_abuseipdb.py b/test/unit/modules/test_sfp_abuseipdb.pyindex d38e18d0..b4fe8e16 100644--- a/test/unit/modules/test_sfp_abuseipdb.py+++ b/test/unit/modules/test_sfp_abuseipdb.py@@ -1,4 +1,3 @@-# test_sfp_abuseipdb.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleabuseipdb(unittest.TestCase):- """- Test modules.sfp_abuseipdb- """+class TestModuleAbuseipdb(unittest.TestCase):def test_opts(self):module = sfp_abuseipdb()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_abuseipdb()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleabuseipdb(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_abuseipdb()diff --git a/test/unit/modules/test_sfp_abusix.py b/test/unit/modules/test_sfp_abusix.pyindex da930e25..90273eda 100644--- a/test/unit/modules/test_sfp_abusix.py+++ b/test/unit/modules/test_sfp_abusix.py@@ -1,4 +1,3 @@-# test_sfp_abusix.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleAbusix(unittest.TestCase):- """- Test modules.sfp_abusix- """def test_opts(self):module = sfp_abusix()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_abusix()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleAbusix(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_abusix()diff --git a/test/unit/modules/test_sfp_accounts.py b/test/unit/modules/test_sfp_accounts.pyindex 0d812def..b6afda96 100644--- a/test/unit/modules/test_sfp_accounts.py+++ b/test/unit/modules/test_sfp_accounts.py@@ -1,28 +1,19 @@-# test_sfp_accounts.pyimport pytestimport unittestfrom modules.sfp_accounts import sfp_accountsfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleaccounts(unittest.TestCase):- """- Test modules.sfp_accounts- """+class TestModuleAccounts(unittest.TestCase):def test_opts(self):module = sfp_accounts()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_accounts()module.setup(sf, dict())@@ -33,27 +24,3 @@ class TestModuleaccounts(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_accounts()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_accounts()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_adblock.py b/test/unit/modules/test_sfp_adblock.pyindex 7a2c6108..4e1b5381 100644--- a/test/unit/modules/test_sfp_adblock.py+++ b/test/unit/modules/test_sfp_adblock.py@@ -1,28 +1,19 @@-# test_sfp_adblock.pyimport pytestimport unittestfrom modules.sfp_adblock import sfp_adblockfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleadblock(unittest.TestCase):- """- Test modules.sfp_adblock- """+class TestModuleAdblock(unittest.TestCase):def test_opts(self):module = sfp_adblock()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_adblock()module.setup(sf, dict())@@ -33,119 +24,3 @@ class TestModuleadblock(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_adblock()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent_event_data_provider_javascript_url_matching_ad_filter_should_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_adblock()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- expected = 'URL_ADBLOCKED_EXTERNAL'- if str(event.eventType) != expected:- raise Exception(f"{event.eventType} != {expected}")-- expected = 'https://example.local/lib/ad.js'- if str(event.data) != expected:- raise Exception(f"{event.data} != {expected}")-- raise Exception("OK")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_adblock)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'PROVIDER_JAVASCRIPT'- event_data = 'https://example.local/lib/ad.js'- event_module = 'example module'- source_event = evt-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- with self.assertRaises(Exception) as cm:- module.handleEvent(evt)-- self.assertEqual("OK", str(cm.exception))-- def test_handleEvent_event_data_external_url_matching_ad_filter_should_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_adblock()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- expected = 'URL_ADBLOCKED_EXTERNAL'- if str(event.eventType) != expected:- raise Exception(f"{event.eventType} != {expected}")-- expected = 'https://example.local/lib/ad.js'- if str(event.data) != expected:- raise Exception(f"{event.data} != {expected}")-- raise Exception("OK")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_adblock)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'LINKED_URL_EXTERNAL'- event_data = 'https://example.local/lib/ad.js'- event_module = 'example module'- source_event = evt-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- with self.assertRaises(Exception) as cm:- module.handleEvent(evt)-- self.assertEqual("OK", str(cm.exception))-- def test_handleEvent_event_data_external_url_not_matching_ad_filter_should_not_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_adblock()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- raise Exception(f"Raised event {event.eventType}: {event.data}")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_adblock)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'LINKED_URL_EXTERNAL'- event_data = 'https://example.local/lib/example.js'- event_module = 'example module'- source_event = evt-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_adguard_dns.py b/test/unit/modules/test_sfp_adguard_dns.pyindex 50b41720..be6da6db 100644--- a/test/unit/modules/test_sfp_adguard_dns.py+++ b/test/unit/modules/test_sfp_adguard_dns.py@@ -1,28 +1,19 @@-# test_sfp_adguard_dns.pyimport pytestimport unittestfrom modules.sfp_adguard_dns import sfp_adguard_dnsfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleAdGuardDns(unittest.TestCase):- """- Test modules.sfp_adguard_dns- """def test_opts(self):module = sfp_adguard_dns()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_adguard_dns()module.setup(sf, dict())@@ -33,77 +24,3 @@ class TestModuleAdGuardDns(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_adguard_dns()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent_event_data_adult_internet_name_blocked_should_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_adguard_dns()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- expected = 'BLACKLISTED_INTERNET_NAME'- if str(event.eventType) != expected:- raise Exception(f"{event.eventType} != {expected}")-- expected = 'AdGuard - Family Filter [pornhub.com]'- if str(event.data) != expected:- raise Exception(f"{event.data} != {expected}")-- raise Exception("OK")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_adguard_dns)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'INTERNET_NAME'- event_data = 'pornhub.com'- event_module = 'example module'- source_event = evt-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- with self.assertRaises(Exception) as cm:- module.handleEvent(evt)-- self.assertEqual("OK", str(cm.exception))-- def test_handleEvent_event_data_safe_internet_name_not_blocked_should_not_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_adguard_dns()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- raise Exception(f"Raised event {event.eventType}: {event.data}")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_adguard_dns)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'INTERNET_NAME'- event_data = 'spiderfoot.net'- event_module = 'example module'- source_event = evt-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_ahmia.py b/test/unit/modules/test_sfp_ahmia.pyindex 4e5626f5..70678527 100644--- a/test/unit/modules/test_sfp_ahmia.py+++ b/test/unit/modules/test_sfp_ahmia.py@@ -1,26 +1,18 @@-# test_sfp_ahmia.pyimport pytestimport unittestfrom modules.sfp_ahmia import sfp_ahmiafrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleahmia(unittest.TestCase):- """- Test modules.sfp_ahmia- """+class TestModuleAhmia(unittest.TestCase):def test_opts(self):module = sfp_ahmia()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)module = sfp_ahmia()@@ -33,28 +25,3 @@ class TestModuleahmia(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_ahmia()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_ahmia()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_alienvault.py b/test/unit/modules/test_sfp_alienvault.pyindex 1713d93e..029bd7d8 100644--- a/test/unit/modules/test_sfp_alienvault.py+++ b/test/unit/modules/test_sfp_alienvault.py@@ -1,4 +1,3 @@-# test_sfp_alienvault.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulealienvault(unittest.TestCase):- """- Test modules.sfp_alienvault- """+class TestModuleAlienvault(unittest.TestCase):def test_opts(self):module = sfp_alienvault()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_alienvault()module.setup(sf, dict())@@ -60,9 +52,6 @@ class TestModulealienvault(unittest.TestCase):self.assertTrue(module.errorState)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_alienvault()diff --git a/test/unit/modules/test_sfp_alienvaultiprep.py b/test/unit/modules/test_sfp_alienvaultiprep.pyindex 5a640102..9ed7e21b 100644--- a/test/unit/modules/test_sfp_alienvaultiprep.py+++ b/test/unit/modules/test_sfp_alienvaultiprep.py@@ -1,28 +1,19 @@-# test_sfp_alienvaultiprep.pyimport pytestimport unittestfrom modules.sfp_alienvaultiprep import sfp_alienvaultiprepfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulealienvaultiprep(unittest.TestCase):- """- Test modules.sfp_alienvaultiprep- """+class TestModuleAlienvaultiprep(unittest.TestCase):def test_opts(self):module = sfp_alienvaultiprep()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_alienvaultiprep()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulealienvaultiprep(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_alienvaultiprep()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_alienvaultiprep()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_apple_itunes.py b/test/unit/modules/test_sfp_apple_itunes.pyindex f0f39d02..9273bf3b 100644--- a/test/unit/modules/test_sfp_apple_itunes.py+++ b/test/unit/modules/test_sfp_apple_itunes.py@@ -1,28 +1,19 @@-# test_sfp_apple_itunes.pyimport pytestimport unittestfrom modules.sfp_apple_itunes import sfp_apple_itunesfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleAppleItunes(unittest.TestCase):- """- Test modules.sfp_apple_itunes- """def test_opts(self):module = sfp_apple_itunes()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_apple_itunes()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuleAppleItunes(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_apple_itunes()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_apple_itunes()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_archiveorg.py b/test/unit/modules/test_sfp_archiveorg.pyindex c6c9bec7..4d299945 100644--- a/test/unit/modules/test_sfp_archiveorg.py+++ b/test/unit/modules/test_sfp_archiveorg.py@@ -1,28 +1,19 @@-# test_sfp_archiveorg.pyimport pytestimport unittestfrom modules.sfp_archiveorg import sfp_archiveorgfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulearchiveorg(unittest.TestCase):- """- Test modules.sfp_archiveorg- """+class TestModuleArchiveorg(unittest.TestCase):def test_opts(self):module = sfp_archiveorg()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_archiveorg()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulearchiveorg(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_archiveorg()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_archiveorg()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_arin.py b/test/unit/modules/test_sfp_arin.pyindex 263c5b89..a74b3ff5 100644--- a/test/unit/modules/test_sfp_arin.py+++ b/test/unit/modules/test_sfp_arin.py@@ -1,28 +1,19 @@-# test_sfp_arin.pyimport pytestimport unittestfrom modules.sfp_arin import sfp_arinfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulearin(unittest.TestCase):- """- Test modules.sfp_arin- """+class TestModuleArin(unittest.TestCase):def test_opts(self):module = sfp_arin()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_arin()module.setup(sf, dict())@@ -33,27 +24,3 @@ class TestModulearin(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_arin()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_arin()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_azureblobstorage.py b/test/unit/modules/test_sfp_azureblobstorage.pyindex 467dabd2..90ae28b8 100644--- a/test/unit/modules/test_sfp_azureblobstorage.py+++ b/test/unit/modules/test_sfp_azureblobstorage.py@@ -1,28 +1,19 @@-# test_sfp_azureblobstorage.pyimport pytestimport unittestfrom modules.sfp_azureblobstorage import sfp_azureblobstoragefrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleazureblobstorage(unittest.TestCase):- """- Test modules.sfp_azureblobstorage- """+class TestModuleAzureblobstorage(unittest.TestCase):def test_opts(self):module = sfp_azureblobstorage()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_azureblobstorage()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuleazureblobstorage(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_azureblobstorage()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_azureblobstorage()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_badpackets.py b/test/unit/modules/test_sfp_badpackets.pyindex 7df79b9a..0e404684 100644--- a/test/unit/modules/test_sfp_badpackets.py+++ b/test/unit/modules/test_sfp_badpackets.py@@ -1,4 +1,3 @@-# test_sfp_badpackets.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulebadpackets(unittest.TestCase):- """- Test modules.sfp_badpackets- """+class TestModuleBadpackets(unittest.TestCase):def test_opts(self):module = sfp_badpackets()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_badpackets()module.setup(sf, dict())@@ -59,9 +51,6 @@ class TestModulebadpackets(unittest.TestCase):self.assertTrue(module.errorState)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_badpackets()@@ -81,3 +70,4 @@ class TestModulebadpackets(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_base64.py b/test/unit/modules/test_sfp_base64.pyindex 2e80cccf..d42ce8a3 100644--- a/test/unit/modules/test_sfp_base64.py+++ b/test/unit/modules/test_sfp_base64.py@@ -1,4 +1,3 @@-# test_sfp_base64.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleBase64(unittest.TestCase):- """- Test modules.sfp_base64- """def test_opts(self):module = sfp_base64()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_base64()module.setup(sf, dict())diff --git a/test/unit/modules/test_sfp_bgpview.py b/test/unit/modules/test_sfp_bgpview.pyindex 620699c3..6b5f3920 100644--- a/test/unit/modules/test_sfp_bgpview.py+++ b/test/unit/modules/test_sfp_bgpview.py@@ -1,28 +1,19 @@-# test_sfp_bgpview.pyimport pytestimport unittestfrom modules.sfp_bgpview import sfp_bgpviewfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulebgpview(unittest.TestCase):- """- Test modules.sfp_bgpview- """+class TestModuleBgpview(unittest.TestCase):def test_opts(self):module = sfp_bgpview()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_bgpview()module.setup(sf, dict())@@ -33,27 +24,3 @@ class TestModulebgpview(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_bgpview()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_bgpview()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_binaryedge.py b/test/unit/modules/test_sfp_binaryedge.pyindex 8bdf5634..45de0418 100644--- a/test/unit/modules/test_sfp_binaryedge.py+++ b/test/unit/modules/test_sfp_binaryedge.py@@ -1,4 +1,3 @@-# test_sfp_binaryedge.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulebinaryedge(unittest.TestCase):- """- Test modules.sfp_binaryedge- """+class TestModuleBinaryedge(unittest.TestCase):def test_opts(self):module = sfp_binaryedge()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_binaryedge()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulebinaryedge(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_binaryedge()diff --git a/test/unit/modules/test_sfp_bingsearch.py b/test/unit/modules/test_sfp_bingsearch.pyindex 927b96ea..bf7648a5 100644--- a/test/unit/modules/test_sfp_bingsearch.py+++ b/test/unit/modules/test_sfp_bingsearch.py@@ -1,4 +1,3 @@-# test_sfp_bingsearch.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulebingsearch(unittest.TestCase):- """- Test modules.sfp_bingsearch- """+class TestModuleBingsearch(unittest.TestCase):def test_opts(self):module = sfp_bingsearch()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_bingsearch()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulebingsearch(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_bingsearch()diff --git a/test/unit/modules/test_sfp_bingsharedip.py b/test/unit/modules/test_sfp_bingsharedip.pyindex 5dbac7a2..36074081 100644--- a/test/unit/modules/test_sfp_bingsharedip.py+++ b/test/unit/modules/test_sfp_bingsharedip.py@@ -1,4 +1,3 @@-# test_sfp_bingsharedip.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulebingsharedip(unittest.TestCase):- """- Test modules.sfp_bingsharedip- """+class TestModuleBingsharedip(unittest.TestCase):def test_opts(self):module = sfp_bingsharedip()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_bingsharedip()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulebingsharedip(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_bingsharedip()diff --git a/test/unit/modules/test_sfp_binstring.py b/test/unit/modules/test_sfp_binstring.pyindex b7a99403..9f1b76d7 100644--- a/test/unit/modules/test_sfp_binstring.py+++ b/test/unit/modules/test_sfp_binstring.py@@ -1,28 +1,19 @@-# test_sfp_binstring.pyimport pytestimport unittestfrom modules.sfp_binstring import sfp_binstringfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleBinstring(unittest.TestCase):- """- Test modules.sfp_binstring- """def test_opts(self):module = sfp_binstring()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_binstring()module.setup(sf, dict())@@ -33,27 +24,3 @@ class TestModuleBinstring(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_binstring()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_binstring()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_bitcoin.py b/test/unit/modules/test_sfp_bitcoin.pyindex 99aabc26..adc602eb 100644--- a/test/unit/modules/test_sfp_bitcoin.py+++ b/test/unit/modules/test_sfp_bitcoin.py@@ -1,4 +1,3 @@-# test_sfp_bitcoin.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleBitcoin(unittest.TestCase):- """- Test modules.sfp_bitcoin- """def test_opts(self):module = sfp_bitcoin()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_bitcoin()module.setup(sf, dict())diff --git a/test/unit/modules/test_sfp_bitcoinabuse.py b/test/unit/modules/test_sfp_bitcoinabuse.pyindex 7e960df3..16fb6032 100644--- a/test/unit/modules/test_sfp_bitcoinabuse.py+++ b/test/unit/modules/test_sfp_bitcoinabuse.py@@ -1,4 +1,3 @@-# test_sfp_bitcoinabuse.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleBitcoinAbuse(unittest.TestCase):- """- Test modules.sfp_bitcoinabuse- """def test_opts(self):module = sfp_bitcoinabuse()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_bitcoinabuse()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleBitcoinAbuse(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_bitcoinabuse()diff --git a/test/unit/modules/test_sfp_bitcoinwhoswho.py b/test/unit/modules/test_sfp_bitcoinwhoswho.pyindex cac46f07..7322a489 100644--- a/test/unit/modules/test_sfp_bitcoinwhoswho.py+++ b/test/unit/modules/test_sfp_bitcoinwhoswho.py@@ -1,4 +1,3 @@-# test_sfp_bitcoinwhoswho.pyimport pytestimport unittest@@ -8,19 +7,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuletemplate(unittest.TestCase):- """- Test modules.sfp_bitcoinwhoswho- """+class TestModuleBitcoinwhoswho(unittest.TestCase):def test_opts(self):module = sfp_bitcoinwhoswho()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)module = sfp_bitcoinwhoswho()@@ -35,9 +28,6 @@ class TestModuletemplate(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_bitcoinwhoswho()diff --git a/test/unit/modules/test_sfp_blockchain.py b/test/unit/modules/test_sfp_blockchain.pyindex f78e41f4..a27bc698 100644--- a/test/unit/modules/test_sfp_blockchain.py+++ b/test/unit/modules/test_sfp_blockchain.py@@ -1,28 +1,19 @@-# test_sfp_blockchain.pyimport pytestimport unittestfrom modules.sfp_blockchain import sfp_blockchainfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleblockchain(unittest.TestCase):- """- Test modules.sfp_blockchain- """+class TestModuleBlockchain(unittest.TestCase):def test_opts(self):module = sfp_blockchain()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_blockchain()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuleblockchain(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_blockchain()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_blockchain()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_blocklistde.py b/test/unit/modules/test_sfp_blocklistde.pyindex 096cd98d..32cdc5fb 100644--- a/test/unit/modules/test_sfp_blocklistde.py+++ b/test/unit/modules/test_sfp_blocklistde.py@@ -1,28 +1,19 @@-# test_sfp_blocklistde.pyimport pytestimport unittestfrom modules.sfp_blocklistde import sfp_blocklistdefrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleblocklistde(unittest.TestCase):- """- Test modules.sfp_blocklistde- """+class TestModuleBlocklistde(unittest.TestCase):def test_opts(self):module = sfp_blocklistde()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_blocklistde()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuleblocklistde(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_blocklistde()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_blocklistde()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_botscout.py b/test/unit/modules/test_sfp_botscout.pyindex f5bb21b9..d99fce19 100644--- a/test/unit/modules/test_sfp_botscout.py+++ b/test/unit/modules/test_sfp_botscout.py@@ -1,28 +1,19 @@-# test_sfp_botscout.pyimport pytestimport unittestfrom modules.sfp_botscout import sfp_botscoutfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulebotscout(unittest.TestCase):- """- Test modules.sfp_botscout- """+class TestModuleBotscout(unittest.TestCase):def test_opts(self):module = sfp_botscout()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_botscout()module.setup(sf, dict())@@ -57,28 +48,3 @@ class TestModulebotscout(unittest.TestCase):result = module.parseApiResponse({"code": code, "content": None})self.assertIsNone(result)self.assertTrue(module.errorState)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_botscout()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_botvrij.py b/test/unit/modules/test_sfp_botvrij.pyindex 663bbb86..508bb6af 100644--- a/test/unit/modules/test_sfp_botvrij.py+++ b/test/unit/modules/test_sfp_botvrij.py@@ -1,28 +1,19 @@-# test_sfp_botvrij.pyimport pytestimport unittestfrom modules.sfp_botvrij import sfp_botvrijfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModulebotvrij(unittest.TestCase):- """- Test modules.sfp_botvrij- """def test_opts(self):module = sfp_botvrij()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_botvrij()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulebotvrij(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_botvrij()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_botvrij()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_builtwith.py b/test/unit/modules/test_sfp_builtwith.pyindex f7acb880..89acb325 100644--- a/test/unit/modules/test_sfp_builtwith.py+++ b/test/unit/modules/test_sfp_builtwith.py@@ -1,4 +1,3 @@-# test_sfp_builtwith.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModulebuiltwith(unittest.TestCase):- """- Test modules.sfp_builtwith- """def test_opts(self):module = sfp_builtwith()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_builtwith()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulebuiltwith(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_builtwith()diff --git a/test/unit/modules/test_sfp_c99.py b/test/unit/modules/test_sfp_c99.pyindex f422b10e..59e7627b 100644--- a/test/unit/modules/test_sfp_c99.py+++ b/test/unit/modules/test_sfp_c99.py@@ -1,4 +1,3 @@-# test_sfp_c99.pyimport pytestimport unittest@@ -9,9 +8,6 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleC99(unittest.TestCase):- """- Test modules.sfp_c99- """def test_opts(self):module = sfp_c99()@@ -19,7 +15,6 @@ class TestModuleC99(unittest.TestCase):def test_setup(self):sf = SpiderFoot(self.default_options)-module = sfp_c99()module.setup(sf, dict())diff --git a/test/unit/modules/test_sfp_callername.py b/test/unit/modules/test_sfp_callername.pyindex 9bea2d6d..3deb8fc3 100644--- a/test/unit/modules/test_sfp_callername.py+++ b/test/unit/modules/test_sfp_callername.py@@ -1,28 +1,19 @@-# test_sfp_callername.pyimport pytestimport unittestfrom modules.sfp_callername import sfp_callernamefrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulecallername(unittest.TestCase):- """- Test modules.sfp_callername- """+class TestModuleCallername(unittest.TestCase):def test_opts(self):module = sfp_callername()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_callername()module.setup(sf, dict())@@ -33,27 +24,3 @@ class TestModulecallername(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_callername()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_callername()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_censys.py b/test/unit/modules/test_sfp_censys.pyindex 47c38e55..7537a03e 100644--- a/test/unit/modules/test_sfp_censys.py+++ b/test/unit/modules/test_sfp_censys.py@@ -1,4 +1,3 @@-# test_sfp_censys.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulecensys(unittest.TestCase):- """- Test modules.sfp_censys- """+class TestModuleCensys(unittest.TestCase):def test_opts(self):module = sfp_censys()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_censys()module.setup(sf, dict())@@ -59,9 +51,6 @@ class TestModulecensys(unittest.TestCase):self.assertTrue(module.errorState)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_censys()diff --git a/test/unit/modules/test_sfp_certspotter.py b/test/unit/modules/test_sfp_certspotter.pyindex ef1a4661..c3f45619 100644--- a/test/unit/modules/test_sfp_certspotter.py+++ b/test/unit/modules/test_sfp_certspotter.py@@ -1,4 +1,3 @@-# test_sfp_certspotter.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulecertspotter(unittest.TestCase):- """- Test modules.sfp_certspotter- """+class TestModuleiCertspotter(unittest.TestCase):def test_opts(self):module = sfp_certspotter()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_certspotter()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulecertspotter(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_certspotter()diff --git a/test/unit/modules/test_sfp_cinsscore.py b/test/unit/modules/test_sfp_cinsscore.pyindex 3f1bec19..813a69af 100644--- a/test/unit/modules/test_sfp_cinsscore.py+++ b/test/unit/modules/test_sfp_cinsscore.py@@ -1,28 +1,19 @@-# test_sfp_cinsscore.pyimport pytestimport unittestfrom modules.sfp_cinsscore import sfp_cinsscorefrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulecinsscore(unittest.TestCase):- """- Test modules.sfp_cinsscore- """+class TestModuleCinsscore(unittest.TestCase):def test_opts(self):module = sfp_cinsscore()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_cinsscore()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulecinsscore(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_cinsscore()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_cinsscore()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_circllu.py b/test/unit/modules/test_sfp_circllu.pyindex 018d9b1e..2be859c9 100644--- a/test/unit/modules/test_sfp_circllu.py+++ b/test/unit/modules/test_sfp_circllu.py@@ -1,4 +1,3 @@-# test_sfp_circllu.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulecircllu(unittest.TestCase):- """- Test modules.sfp_circllu- """+class TestModuleCircllu(unittest.TestCase):def test_opts(self):module = sfp_circllu()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_circllu()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulecircllu(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_circllu()diff --git a/test/unit/modules/test_sfp_citadel.py b/test/unit/modules/test_sfp_citadel.pyindex 29fcc9b1..d1319ef2 100644--- a/test/unit/modules/test_sfp_citadel.py+++ b/test/unit/modules/test_sfp_citadel.py@@ -1,28 +1,19 @@-# test_sfp_citadel.pyimport pytestimport unittestfrom modules.sfp_citadel import sfp_citadelfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModulecitadel(unittest.TestCase):- """- Test modules.sfp_citadel- """def test_opts(self):module = sfp_citadel()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_citadel()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulecitadel(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_citadel()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_citadel()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_cleanbrowsing.py b/test/unit/modules/test_sfp_cleanbrowsing.pyindex a109cb4a..2acc383c 100644--- a/test/unit/modules/test_sfp_cleanbrowsing.py+++ b/test/unit/modules/test_sfp_cleanbrowsing.py@@ -1,28 +1,19 @@-# test_sfp_cleanbrowsing.pyimport pytestimport unittestfrom modules.sfp_cleanbrowsing import sfp_cleanbrowsingfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulecleanbrowsing(unittest.TestCase):- """- Test modules.sfp_cleanbrowsing- """+class TestModuleCleanbrowsing(unittest.TestCase):def test_opts(self):module = sfp_cleanbrowsing()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_cleanbrowsing()module.setup(sf, dict())@@ -33,77 +24,3 @@ class TestModulecleanbrowsing(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_cleanbrowsing()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent_event_data_adult_internet_name_blocked_should_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_cleanbrowsing()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- expected = 'BLACKLISTED_INTERNET_NAME'- if str(event.eventType) != expected:- raise Exception(f"{event.eventType} != {expected}")-- expected = 'CleanBrowsing DNS - Adult [pornhub.com]'- if str(event.data) != expected:- raise Exception(f"{event.data} != {expected}")-- raise Exception("OK")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_cleanbrowsing)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'INTERNET_NAME'- event_data = 'pornhub.com'- event_module = 'example module'- source_event = evt-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- with self.assertRaises(Exception) as cm:- module.handleEvent(evt)-- self.assertEqual("OK", str(cm.exception))-- def test_handleEvent_event_data_safe_internet_name_not_blocked_should_not_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_cleanbrowsing()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- raise Exception(f"Raised event {event.eventType}: {event.data}")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_cleanbrowsing)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'INTERNET_NAME'- event_data = 'spiderfoot.net'- event_module = 'example module'- source_event = evt-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_cleantalk.py b/test/unit/modules/test_sfp_cleantalk.pyindex e16b32e4..278fd6f8 100644--- a/test/unit/modules/test_sfp_cleantalk.py+++ b/test/unit/modules/test_sfp_cleantalk.py@@ -1,28 +1,19 @@-# test_sfp_cleantalk.pyimport pytestimport unittestfrom modules.sfp_cleantalk import sfp_cleantalkfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulecleantalk(unittest.TestCase):- """- Test modules.sfp_cleantalk- """+class TestModuleCleantalk(unittest.TestCase):def test_opts(self):module = sfp_cleantalk()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_cleantalk()module.setup(sf, dict())@@ -33,40 +24,3 @@ class TestModulecleantalk(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_cleantalk()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent_event_data_safe_ip_address_not_blocked_should_not_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_cleantalk()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- module.opts['_fetchtimeout'] = 15- module.optdescs['_fetchtimeout'] = ''- module.opts['_useragent'] = ''- module.optdescs['_useragent'] = ''-- def new_notifyListeners(self, event):- raise Exception(f"Raised event {event.eventType}: {event.data}")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_cleantalk)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'IP_ADDRESS'- event_data = '1.0.0.1'- event_module = 'example module'- source_event = evt-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_clearbit.py b/test/unit/modules/test_sfp_clearbit.pyindex 9907a2d6..b7a13051 100644--- a/test/unit/modules/test_sfp_clearbit.py+++ b/test/unit/modules/test_sfp_clearbit.py@@ -1,4 +1,3 @@-# test_sfp_clearbit.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleclearbit(unittest.TestCase):- """- Test modules.sfp_clearbit- """+class TestModuleClearbit(unittest.TestCase):def test_opts(self):module = sfp_clearbit()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_clearbit()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleclearbit(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_clearbit()diff --git a/test/unit/modules/test_sfp_cloudflaredns.py b/test/unit/modules/test_sfp_cloudflaredns.pyindex 4456a3c0..f32a3ea6 100644--- a/test/unit/modules/test_sfp_cloudflaredns.py+++ b/test/unit/modules/test_sfp_cloudflaredns.py@@ -1,28 +1,19 @@-# test_sfp_cloudflaredns.pyimport pytestimport unittestfrom modules.sfp_cloudflaredns import sfp_cloudflarednsfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulecloudflaredns(unittest.TestCase):- """- Test modules.sfp_cloudflaredns- """+class TestModuleCloudflaredns(unittest.TestCase):def test_opts(self):module = sfp_cloudflaredns()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_cloudflaredns()module.setup(sf, dict())@@ -33,77 +24,3 @@ class TestModulecloudflaredns(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_cloudflaredns()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent_event_data_safe_internet_name_not_blocked_should_not_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_cloudflaredns()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- raise Exception(f"Raised event {event.eventType}: {event.data}")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_cloudflaredns)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'INTERNET_NAME'- event_data = 'cloudflare.com'- event_module = 'example module'- source_event = evt-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)- result = module.handleEvent(evt)-- self.assertIsNone(result)-- def test_handleEvent_event_data_adult_internet_name_blocked_should_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_cloudflaredns()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- expected = 'BLACKLISTED_INTERNET_NAME'- if str(event.eventType) != expected:- raise Exception(f"{event.eventType} != {expected}")-- expected = 'CloudFlare - Family [pornhub.com]'- if str(event.data) != expected:- raise Exception(f"{event.data} != {expected}")-- raise Exception("OK")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_cloudflaredns)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'INTERNET_NAME'- event_data = 'pornhub.com'- event_module = 'example module'- source_event = evt-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- with self.assertRaises(Exception) as cm:- module.handleEvent(evt)-- self.assertEqual("OK", str(cm.exception))diff --git a/test/unit/modules/test_sfp_coinblocker.py b/test/unit/modules/test_sfp_coinblocker.pyindex dc527d2d..29e9e833 100644--- a/test/unit/modules/test_sfp_coinblocker.py+++ b/test/unit/modules/test_sfp_coinblocker.py@@ -1,28 +1,19 @@-# test_sfp_coinblocker.pyimport pytestimport unittestfrom modules.sfp_coinblocker import sfp_coinblockerfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulecoinblocker(unittest.TestCase):- """- Test modules.sfp_coinblocker- """+class TestModuleCoinblocker(unittest.TestCase):def test_opts(self):module = sfp_coinblocker()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_coinblocker()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulecoinblocker(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_coinblocker()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_coinblocker()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_commoncrawl.py b/test/unit/modules/test_sfp_commoncrawl.pyindex a93bede5..d1646834 100644--- a/test/unit/modules/test_sfp_commoncrawl.py+++ b/test/unit/modules/test_sfp_commoncrawl.py@@ -1,28 +1,19 @@-# test_sfp_commoncrawl.pyimport pytestimport unittestfrom modules.sfp_commoncrawl import sfp_commoncrawlfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulecommoncrawl(unittest.TestCase):- """- Test modules.sfp_commoncrawl- """+class TestModuleCommoncrawl(unittest.TestCase):def test_opts(self):module = sfp_commoncrawl()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_commoncrawl()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulecommoncrawl(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_commoncrawl()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_commoncrawl()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_comodo.py b/test/unit/modules/test_sfp_comodo.pyindex 6673a628..5c1c588a 100644--- a/test/unit/modules/test_sfp_comodo.py+++ b/test/unit/modules/test_sfp_comodo.py@@ -1,28 +1,19 @@-# test_sfp_comodo.pyimport pytestimport unittestfrom modules.sfp_comodo import sfp_comodofrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulecomodo(unittest.TestCase):- """- Test modules.sfp_comodo- """+class TestModuleComodo(unittest.TestCase):def test_opts(self):module = sfp_comodo()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_comodo()module.setup(sf, dict())@@ -33,35 +24,3 @@ class TestModulecomodo(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_comodo()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent_event_data_safe_internet_name_not_blocked_should_not_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_comodo()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- raise Exception(f"Raised event {event.eventType}: {event.data}")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_comodo)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'INTERNET_NAME'- event_data = 'comodo.com'- event_module = 'example module'- source_event = evt-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_company.py b/test/unit/modules/test_sfp_company.pyindex ec305ee7..bdf543d5 100644--- a/test/unit/modules/test_sfp_company.py+++ b/test/unit/modules/test_sfp_company.py@@ -1,4 +1,3 @@-# test_sfp_company.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleCompany(unittest.TestCase):- """- Test modules.sfp_company- """def test_opts(self):module = sfp_company()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_company()module.setup(sf, dict())@@ -34,26 +26,128 @@ class TestModuleCompany(unittest.TestCase):module = sfp_company()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):- """- Test handleEvent(self, event)- """+ @unittest.skip("todo")+ def test_handleEvent_event_data_ssl_certificate_issued_containing_company_name_should_return_event(self):sf = SpiderFoot(self.default_options)module = sfp_company()module.setup(sf, dict())- target_value = 'example target value'- target_type = 'IP_ADDRESS'+ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'target = SpiderFootTarget(target_value, target_type)module.setTarget(target)+ def new_notifyListeners(self, event):+ expected = 'COMPANY_NAME'+ if str(event.eventType) != expected:+ raise Exception(f"{event.eventType} != {expected}")++ expected = "SpiderFoot Corporation"+ if str(event.data) != expected:+ raise Exception(f"{event.data} != {expected}")++ raise Exception("OK")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_company)+event_type = 'ROOT'event_data = 'example data'event_module = ''source_event = ''evt = SpiderFootEvent(event_type, event_data, event_module, source_event)- result = module.handleEvent(evt)+ event_type = 'SSL_CERTIFICATE_ISSUED'+ event_data = 'O=SpiderFoot Corporation'+ event_module = 'example module'+ source_event = evt+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ with self.assertRaises(Exception) as cm:+ module.handleEvent(evt)++ self.assertEqual("OK", str(cm.exception))++ @unittest.skip("todo")+ def test_handleEvent_event_data_domain_whois_containing_company_name_should_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_company()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ expected = 'COMPANY_NAME'+ if str(event.eventType) != expected:+ raise Exception(f"{event.eventType} != {expected}")++ expected = "SpiderFoot Corporation"+ if str(event.data) != expected:+ raise Exception(f"{event.data} != {expected}")++ raise Exception("OK")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_company)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'DOMAIN_WHOIS'+ event_data = 'Registrant Organization: SpiderFoot Corporation'+ event_module = 'example module'+ source_event = evt+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ with self.assertRaises(Exception) as cm:+ module.handleEvent(evt)++ self.assertEqual("OK", str(cm.exception))++ @unittest.skip("todo")+ def test_handleEvent_event_data_target_web_content_containing_company_name_should_return_event(self):+ sf = SpiderFoot(self.default_options)++ module = sfp_company()+ module.setup(sf, dict())++ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'+ target = SpiderFootTarget(target_value, target_type)+ module.setTarget(target)++ def new_notifyListeners(self, event):+ expected = 'COMPANY_NAME'+ if str(event.eventType) != expected:+ raise Exception(f"{event.eventType} != {expected}")++ expected = "SpiderFoot Corporation"+ if str(event.data) != expected:+ raise Exception(f"{event.data} != {expected}")++ raise Exception("OK")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_company)++ event_type = 'ROOT'+ event_data = 'example data'+ event_module = ''+ source_event = ''+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ event_type = 'TARGET_WEB_CONTENT'+ event_data = '<p>Copyright SpiderFoot Corporation 2022.</p>'+ event_module = 'example module'+ source_event = evt+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ with self.assertRaises(Exception) as cm:+ module.handleEvent(evt)- self.assertIsNone(result)+ self.assertEqual("OK", str(cm.exception))diff --git a/test/unit/modules/test_sfp_cookie.py b/test/unit/modules/test_sfp_cookie.pyindex 0a389467..b5ae7498 100644--- a/test/unit/modules/test_sfp_cookie.py+++ b/test/unit/modules/test_sfp_cookie.py@@ -1,4 +1,3 @@-# test_sfp_cookie.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleCookie(unittest.TestCase):- """- Test modules.sfp_cookie- """def test_opts(self):module = sfp_cookie()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_cookie()module.setup(sf, dict())diff --git a/test/unit/modules/test_sfp_countryname.py b/test/unit/modules/test_sfp_countryname.pyindex 88778493..6ab76c04 100644--- a/test/unit/modules/test_sfp_countryname.py+++ b/test/unit/modules/test_sfp_countryname.py@@ -1,4 +1,3 @@-# test_sfp_countryname.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleCountryName(unittest.TestCase):- """- Test modules.sfp_countryname- """def test_opts(self):module = sfp_countryname()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_countryname()module.setup(sf, dict())diff --git a/test/unit/modules/test_sfp_creditcard.py b/test/unit/modules/test_sfp_creditcard.pyindex 74ef4c9f..7a3c8a5b 100644--- a/test/unit/modules/test_sfp_creditcard.py+++ b/test/unit/modules/test_sfp_creditcard.py@@ -1,4 +1,3 @@-# test_sfp_creditcard.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleCreditCard(unittest.TestCase):- """- Test modules.sfp_creditcard- """def test_opts(self):module = sfp_creditcard()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_creditcard()module.setup(sf, dict())@@ -34,7 +26,7 @@ class TestModuleCreditCard(unittest.TestCase):module = sfp_creditcard()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent_event_data_containing_creditcard(self):+ def test_handleEvent_event_data_containing_creditcard_should_return_event(self):sf = SpiderFoot(self.default_options)module = sfp_creditcard()diff --git a/test/unit/modules/test_sfp_crobat_api.py b/test/unit/modules/test_sfp_crobat_api.pyindex 15d0571d..d94bf362 100644--- a/test/unit/modules/test_sfp_crobat_api.py+++ b/test/unit/modules/test_sfp_crobat_api.py@@ -1,28 +1,19 @@-# test_sfp_crobat_api.pyimport pytestimport unittestfrom modules.sfp_crobat_api import sfp_crobat_apifrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleCrobat_api(unittest.TestCase):- """- Test modules.sfp_crobat_api- """+class TestModuleCrobatApi(unittest.TestCase):def test_opts(self):module = sfp_crobat_api()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_crobat_api()module.setup(sf, dict())@@ -57,27 +48,3 @@ class TestModuleCrobat_api(unittest.TestCase):result = module.parseApiResponse({"code": code, "content": None})self.assertIsNone(result)self.assertTrue(module.errorState)-- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_crobat_api()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_crossref.py b/test/unit/modules/test_sfp_crossref.pyindex b9de19bd..2ce9ef99 100644--- a/test/unit/modules/test_sfp_crossref.py+++ b/test/unit/modules/test_sfp_crossref.py@@ -1,28 +1,19 @@-# test_sfp_crossref.pyimport pytestimport unittestfrom modules.sfp_crossref import sfp_crossreffrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulecrossref(unittest.TestCase):- """- Test modules.sfp_crossref- """+class TestModuleCrossref(unittest.TestCase):def test_opts(self):module = sfp_crossref()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_crossref()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulecrossref(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_crossref()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_crossref()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_crt.py b/test/unit/modules/test_sfp_crt.pyindex 3cbee45e..9d51bf77 100644--- a/test/unit/modules/test_sfp_crt.py+++ b/test/unit/modules/test_sfp_crt.py@@ -1,28 +1,19 @@-# test_sfp_crt.pyimport pytestimport unittestfrom modules.sfp_crt import sfp_crtfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulecrt(unittest.TestCase):- """- Test modules.sfp_crt- """+class TestModuleCrt(unittest.TestCase):def test_opts(self):module = sfp_crt()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_crt()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulecrt(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_crt()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_crt()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_crxcavator.py b/test/unit/modules/test_sfp_crxcavator.pyindex 58197fd6..ff527c41 100644--- a/test/unit/modules/test_sfp_crxcavator.py+++ b/test/unit/modules/test_sfp_crxcavator.py@@ -1,28 +1,19 @@-# test_sfp_crxcavator.pyimport pytestimport unittestfrom modules.sfp_crxcavator import sfp_crxcavatorfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleCrxcavator(unittest.TestCase):- """- Test modules.sfp_crxcavator- """def test_opts(self):module = sfp_crxcavator()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_crxcavator()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuleCrxcavator(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_crxcavator()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_crxcavator()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_customfeed.py b/test/unit/modules/test_sfp_customfeed.pyindex 928f78c5..a69250e2 100644--- a/test/unit/modules/test_sfp_customfeed.py+++ b/test/unit/modules/test_sfp_customfeed.py@@ -1,4 +1,3 @@-# test_sfp_customfeed.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulecustomfeed(unittest.TestCase):- """- Test modules.sfp_customfeed- """+class TestModuleCustomfeed(unittest.TestCase):def test_opts(self):module = sfp_customfeed()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_customfeed()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulecustomfeed(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_feed_url_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_customfeed()diff --git a/test/unit/modules/test_sfp_cybercrimetracker.py b/test/unit/modules/test_sfp_cybercrimetracker.pyindex af6da4a0..049bb05d 100644--- a/test/unit/modules/test_sfp_cybercrimetracker.py+++ b/test/unit/modules/test_sfp_cybercrimetracker.py@@ -1,28 +1,19 @@-# test_sfp_cybercrimetracker.pyimport pytestimport unittestfrom modules.sfp_cybercrimetracker import sfp_cybercrimetrackerfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulecybercrimetracker(unittest.TestCase):- """- Test modules.sfp_cybercrimetracker- """+class TestModuleCybercrimetracker(unittest.TestCase):def test_opts(self):module = sfp_cybercrimetracker()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_cybercrimetracker()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulecybercrimetracker(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_cybercrimetracker()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_cybercrimetracker()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_darksearch.py b/test/unit/modules/test_sfp_darksearch.pyindex cf62d080..abc63e22 100644--- a/test/unit/modules/test_sfp_darksearch.py+++ b/test/unit/modules/test_sfp_darksearch.py@@ -1,28 +1,19 @@-# test_sfp_darksearch.pyimport pytestimport unittestfrom modules.sfp_darksearch import sfp_darksearchfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuledarksearch(unittest.TestCase):- """- Test modules.sfp_darksearch- """+class TestModuleDarksearch(unittest.TestCase):def test_opts(self):module = sfp_darksearch()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_darksearch()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuledarksearch(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_darksearch()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_darksearch()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_debounce.py b/test/unit/modules/test_sfp_debounce.pyindex 05f420f4..34fce639 100644--- a/test/unit/modules/test_sfp_debounce.py+++ b/test/unit/modules/test_sfp_debounce.py@@ -1,28 +1,19 @@-# test_sfp_debounce.pyimport pytestimport unittestfrom modules.sfp_debounce import sfp_debouncefrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuledebounce(unittest.TestCase):- """- Test modules.sfp_debounce- """+class TestModuleDebounce(unittest.TestCase):def test_opts(self):module = sfp_debounce()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_debounce()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuledebounce(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_debounce()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_debounce()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'EMAILADDR'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_dehashed.py b/test/unit/modules/test_sfp_dehashed.pyindex 01bb49bf..fa9080af 100644--- a/test/unit/modules/test_sfp_dehashed.py+++ b/test/unit/modules/test_sfp_dehashed.py@@ -1,4 +1,3 @@-# test_sfp_dehashed.pyimport pytestimport unittest@@ -8,19 +7,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuledebounce(unittest.TestCase):- """- Test modules.sfp_dehashed- """+class TestModuleDehashed(unittest.TestCase):def test_opts(self):module = sfp_dehashed()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)module = sfp_dehashed()@@ -35,9 +28,6 @@ class TestModuledebounce(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_dehashed()diff --git a/test/unit/modules/test_sfp_digitaloceanspace.py b/test/unit/modules/test_sfp_digitaloceanspace.pyindex 3585c531..b03b3185 100644--- a/test/unit/modules/test_sfp_digitaloceanspace.py+++ b/test/unit/modules/test_sfp_digitaloceanspace.py@@ -1,28 +1,19 @@-# test_sfp_digitaloceanspace.pyimport pytestimport unittestfrom modules.sfp_digitaloceanspace import sfp_digitaloceanspacefrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuledigitaloceanspace(unittest.TestCase):- """- Test modules.sfp_digitaloceanspace- """+class TestModuleDigitaloceanspace(unittest.TestCase):def test_opts(self):module = sfp_digitaloceanspace()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_digitaloceanspace()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuledigitaloceanspace(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_digitaloceanspace()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_digitaloceanspace()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_dns_for_family.py b/test/unit/modules/test_sfp_dns_for_family.pyindex b2d367f6..84c0070c 100644--- a/test/unit/modules/test_sfp_dns_for_family.py+++ b/test/unit/modules/test_sfp_dns_for_family.py@@ -1,28 +1,19 @@-# test_sfp_dns_for_family.pyimport pytestimport unittestfrom modules.sfp_dns_for_family import sfp_dns_for_familyfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleDnsForFamily(unittest.TestCase):- """- Test modules.sfp_dns_for_family- """def test_opts(self):module = sfp_dns_for_family()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_dns_for_family()module.setup(sf, dict())@@ -33,77 +24,3 @@ class TestModuleDnsForFamily(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_dns_for_family()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent_event_data_safe_internet_name_not_blocked_should_not_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_dns_for_family()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- raise Exception(f"Raised event {event.eventType}: {event.data}")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_dns_for_family)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'INTERNET_NAME'- event_data = 'dns_for_family.com'- event_module = 'example module'- source_event = evt-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)- result = module.handleEvent(evt)-- self.assertIsNone(result)-- def test_handleEvent_event_data_adult_internet_name_blocked_should_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_dns_for_family()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- expected = 'BLACKLISTED_INTERNET_NAME'- if str(event.eventType) != expected:- raise Exception(f"{event.eventType} != {expected}")-- expected = 'DNS for Family [pornhub.com]'- if str(event.data) != expected:- raise Exception(f"{event.data} != {expected}")-- raise Exception("OK")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_dns_for_family)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'INTERNET_NAME'- event_data = 'pornhub.com'- event_module = 'example module'- source_event = evt-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- with self.assertRaises(Exception) as cm:- module.handleEvent(evt)-- self.assertEqual("OK", str(cm.exception))diff --git a/test/unit/modules/test_sfp_dnsbrute.py b/test/unit/modules/test_sfp_dnsbrute.pyindex 1c26a2fe..ff9d9691 100644--- a/test/unit/modules/test_sfp_dnsbrute.py+++ b/test/unit/modules/test_sfp_dnsbrute.py@@ -1,28 +1,19 @@-# test_sfp_dnsbrute.pyimport pytestimport unittestfrom modules.sfp_dnsbrute import sfp_dnsbrutefrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulednsbrute(unittest.TestCase):- """- Test modules.sfp_dnsbrute- """+class TestModuleDnsBrute(unittest.TestCase):def test_opts(self):module = sfp_dnsbrute()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_dnsbrute()module.setup(sf, dict())@@ -33,27 +24,3 @@ class TestModulednsbrute(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_dnsbrute()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_dnsbrute()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_dnscommonsrv.py b/test/unit/modules/test_sfp_dnscommonsrv.pyindex 5c872864..4779721b 100644--- a/test/unit/modules/test_sfp_dnscommonsrv.py+++ b/test/unit/modules/test_sfp_dnscommonsrv.py@@ -1,28 +1,19 @@-# test_sfp_dnscommonsrv.pyimport pytestimport unittestfrom modules.sfp_dnscommonsrv import sfp_dnscommonsrvfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulednscommonsrv(unittest.TestCase):- """- Test modules.sfp_dnscommonsrv- """+class TestModuleDnsCommonsrv(unittest.TestCase):def test_opts(self):module = sfp_dnscommonsrv()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_dnscommonsrv()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulednscommonsrv(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_dnscommonsrv()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_dnscommonsrv()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_dnsdb.py b/test/unit/modules/test_sfp_dnsdb.pyindex 4e559867..c63e4c3f 100644--- a/test/unit/modules/test_sfp_dnsdb.py+++ b/test/unit/modules/test_sfp_dnsdb.py@@ -1,4 +1,3 @@-# test_sfp_dnsdb.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulednsdb(unittest.TestCase):- """- Test modules.sfp_dnsdb- """+class TestModuleDnsDb(unittest.TestCase):def test_opts(self):module = sfp_dnsdb()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_dnsdb()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulednsdb(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_dnsdb()diff --git a/test/unit/modules/test_sfp_dnsdumpster.py b/test/unit/modules/test_sfp_dnsdumpster.pyindex f0660c92..c94fcbb3 100644--- a/test/unit/modules/test_sfp_dnsdumpster.py+++ b/test/unit/modules/test_sfp_dnsdumpster.py@@ -1,28 +1,19 @@-# test_sfp_dnsdumpster.pyimport pytestimport unittestfrom modules.sfp_dnsdumpster import sfp_dnsdumpsterfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulednsdumpster(unittest.TestCase):- """- Test modules.sfp_dnsdumpster- """+class TestModuleDnsDumpster(unittest.TestCase):def test_opts(self):module = sfp_dnsdumpster()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_dnsdumpster()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulednsdumpster(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_dnsdumpster()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_dnsdumpster()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_dnsgrep.py b/test/unit/modules/test_sfp_dnsgrep.pyindex e4836473..69cfefaa 100644--- a/test/unit/modules/test_sfp_dnsgrep.py+++ b/test/unit/modules/test_sfp_dnsgrep.py@@ -1,28 +1,19 @@-# test_sfp_dnsgrep.pyimport pytestimport unittestfrom modules.sfp_dnsgrep import sfp_dnsgrepfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulednsgrep(unittest.TestCase):- """- Test modules.sfp_dnsgrep- """+class TestModuleDnsGrep(unittest.TestCase):def test_opts(self):module = sfp_dnsgrep()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_dnsgrep()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulednsgrep(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_dnsgrep()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_dnsgrep()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_dnsneighbor.py b/test/unit/modules/test_sfp_dnsneighbor.pyindex 1c517ae7..8923d36f 100644--- a/test/unit/modules/test_sfp_dnsneighbor.py+++ b/test/unit/modules/test_sfp_dnsneighbor.py@@ -1,28 +1,19 @@-# test_sfp_dnsneighbor.pyimport pytestimport unittestfrom modules.sfp_dnsneighbor import sfp_dnsneighborfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulednsneighbor(unittest.TestCase):- """- Test modules.sfp_dnsneighbor- """+class TestModuleDnsNeighbor(unittest.TestCase):def test_opts(self):module = sfp_dnsneighbor()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_dnsneighbor()module.setup(sf, dict())@@ -33,27 +24,3 @@ class TestModulednsneighbor(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_dnsneighbor()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_dnsneighbor()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_dnsraw.py b/test/unit/modules/test_sfp_dnsraw.pyindex 51bd68a7..c73e11f5 100644--- a/test/unit/modules/test_sfp_dnsraw.py+++ b/test/unit/modules/test_sfp_dnsraw.py@@ -1,28 +1,19 @@-# test_sfp_dnsraw.pyimport pytestimport unittestfrom modules.sfp_dnsraw import sfp_dnsrawfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulednsraw(unittest.TestCase):- """- Test modules.sfp_dnsraw- """+class TestModuleDnsRaw(unittest.TestCase):def test_opts(self):module = sfp_dnsraw()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_dnsraw()module.setup(sf, dict())@@ -33,27 +24,3 @@ class TestModulednsraw(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_dnsraw()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_dnsraw()- module.setup(sf, dict())-- target_value = '1.1.1.1'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = '1.1.1.1'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_dnsresolve.py b/test/unit/modules/test_sfp_dnsresolve.pyindex 1f06504f..41b63663 100644--- a/test/unit/modules/test_sfp_dnsresolve.py+++ b/test/unit/modules/test_sfp_dnsresolve.py@@ -1,28 +1,19 @@-# test_sfp_dnsresolve.pyimport pytestimport unittestfrom modules.sfp_dnsresolve import sfp_dnsresolvefrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleDnsResolve(unittest.TestCase):- """- Test modules.sfp_dnsresolve- """def test_opts(self):module = sfp_dnsresolve()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_dnsresolve()module.setup(sf, dict())@@ -33,231 +24,3 @@ class TestModuleDnsResolve(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_dnsresolve()self.assertIsInstance(module.producedEvents(), list)-- def test_enrichTarget_should_return_SpiderFootTarget(self):- """- Test enrichTarget(self, target)- """- sf = SpiderFoot(self.default_options)-- module = sfp_dnsresolve()- module.setup(sf, dict())-- target_value = '127.0.0.1'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)-- result = module.enrichTarget(target)- self.assertIsInstance(result, SpiderFootTarget)- self.assertEqual(result.targetType, target_type)- self.assertEqual(result.targetValue, target_value)-- def test_resolveTargets_should_return_list(self):- """- Test resolveTargets(self, target, validateReverse)- """- sf = SpiderFoot(self.default_options)-- module = sfp_dnsresolve()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- invalid_types = [None, "", list(), dict()]- for invalid_type in invalid_types:- with self.subTest(invalid_type=invalid_type):- resolve_targets = module.resolveTargets(invalid_type, False)- self.assertIsInstance(resolve_targets, list)-- target = SpiderFootTarget("spiderfoot.net", "INTERNET_NAME")- resolve_targets = module.resolveTargets(target, False)- self.assertIsInstance(resolve_targets, list)- self.assertIn('spiderfoot.net', resolve_targets)-- target = SpiderFootTarget("127.0.0.1", "IP_ADDRESS")- resolve_targets = module.resolveTargets(target, False)- self.assertIsInstance(resolve_targets, list)- self.assertIn('127.0.0.1', resolve_targets)-- target = SpiderFootTarget("::1", "IPV6_ADDRESS")- resolve_targets = module.resolveTargets(target, False)- self.assertIsInstance(resolve_targets, list)- self.assertIn('::1', resolve_targets)-- target = SpiderFootTarget("127.0.0.1/32", "NETBLOCK_OWNER")- resolve_targets = module.resolveTargets(target, False)- self.assertIsInstance(resolve_targets, list)- self.assertIn('127.0.0.1', resolve_targets)-- @unittest.skip("CI tests fail on MacOSX")- def test_handleEvent_event_data_ip_address_should_return_internet_name_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_dnsresolve()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- expected = 'INTERNET_NAME'- if str(event.eventType) != expected:- raise Exception(f"{event.eventType} != {expected}")-- expected = "one.one.one.one"- if str(event.data) != expected:- raise Exception(f"{event.data} != {expected}")-- raise Exception("OK")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_dnsresolve)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'IP_ADDRESS'- event_data = '1.1.1.1'- event_module = 'example module'- source_event = evt- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- with self.assertRaises(Exception) as cm:- module.handleEvent(evt)-- self.assertEqual("OK", str(cm.exception))-- @unittest.skip("CI tests fail on MacOSX")- def test_handleEvent_event_data_ipv6_address_should_return_internet_name_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_dnsresolve()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- expected = 'INTERNET_NAME'- if str(event.eventType) != expected:- raise Exception(f"{event.eventType} != {expected}")-- expected = "one.one.one.one"- if str(event.data) != expected:- raise Exception(f"{event.data} != {expected}")-- raise Exception("OK")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_dnsresolve)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'IPV6_ADDRESS'- event_data = '2606:4700:4700::1111'- event_module = 'example module'- source_event = evt- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- with self.assertRaises(Exception) as cm:- module.handleEvent(evt)-- self.assertEqual("OK", str(cm.exception))-- @unittest.skip("CI tests fail on MacOSX")- def test_handleEvent_event_data_affiliate_ip_address_should_return_affiliate_internet_name_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_dnsresolve()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- expected = 'AFFILIATE_INTERNET_NAME'- if str(event.eventType) != expected:- raise Exception(f"{event.eventType} != {expected}")-- expected = "one.one.one.one"- if str(event.data) != expected:- raise Exception(f"{event.data} != {expected}")-- raise Exception("OK")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_dnsresolve)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'AFFILIATE_IPADDR'- event_data = '1.1.1.1'- event_module = 'example module'- source_event = evt- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- with self.assertRaises(Exception) as cm:- module.handleEvent(evt)-- self.assertEqual("OK", str(cm.exception))-- def test_handleEvent_event_data_raw_rir_data_containing_subdomain_should_return_internet_name_event(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_dnsresolve()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- expected = 'INTERNET_NAME'- if str(event.eventType) != expected:- raise Exception(f"{event.eventType} != {expected}")-- expected = "www.spiderfoot.net"- if str(event.data) != expected:- raise Exception(f"{event.data} != {expected}")-- raise Exception("OK")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_dnsresolve)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'RAW_RIR_DATA'- event_data = 'example data www.spiderfoot.net example data'- event_module = 'example module'- source_event = evt- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- with self.assertRaises(Exception) as cm:- module.handleEvent(evt)-- self.assertEqual("OK", str(cm.exception))diff --git a/test/unit/modules/test_sfp_dnszonexfer.py b/test/unit/modules/test_sfp_dnszonexfer.pyindex 7598d70b..80e3b03e 100644--- a/test/unit/modules/test_sfp_dnszonexfer.py+++ b/test/unit/modules/test_sfp_dnszonexfer.py@@ -1,28 +1,19 @@-# test_sfp_dnszonexfer.pyimport pytestimport unittestfrom modules.sfp_dnszonexfer import sfp_dnszonexferfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulednszonexfer(unittest.TestCase):- """- Test modules.sfp_dnszonexfer- """+class TestModuleDnsZonexfer(unittest.TestCase):def test_opts(self):module = sfp_dnszonexfer()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_dnszonexfer()module.setup(sf, dict())@@ -33,27 +24,3 @@ class TestModulednszonexfer(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_dnszonexfer()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_dnszonexfer()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_dronebl.py b/test/unit/modules/test_sfp_dronebl.pyindex 971c73d1..bb5a6faa 100644--- a/test/unit/modules/test_sfp_dronebl.py+++ b/test/unit/modules/test_sfp_dronebl.py@@ -1,28 +1,19 @@-# test_sfp_dronebl.pyimport pytestimport unittestfrom modules.sfp_dronebl import sfp_droneblfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuledronebl(unittest.TestCase):- """- Test modules.sfp_dronebl- """+class TestModuleDronebl(unittest.TestCase):def test_opts(self):module = sfp_dronebl()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_dronebl()module.setup(sf, dict())@@ -33,35 +24,3 @@ class TestModuledronebl(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_dronebl()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent_event_data_safe_ip_address_not_blocked_should_not_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_dronebl()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- raise Exception(f"Raised event {event.eventType}: {event.data}")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_dronebl)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'IP_ADDRESS'- event_data = '1.0.0.1'- event_module = 'example module'- source_event = evt-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_duckduckgo.py b/test/unit/modules/test_sfp_duckduckgo.pyindex 4a8d7612..d01c150a 100644--- a/test/unit/modules/test_sfp_duckduckgo.py+++ b/test/unit/modules/test_sfp_duckduckgo.py@@ -1,28 +1,19 @@-# test_sfp_duckduckgo.pyimport pytestimport unittestfrom modules.sfp_duckduckgo import sfp_duckduckgofrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleduckduckgo(unittest.TestCase):- """- Test modules.sfp_duckduckgo- """+class TestModuleDuckduckgo(unittest.TestCase):def test_opts(self):module = sfp_duckduckgo()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_duckduckgo()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuleduckduckgo(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_duckduckgo()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_duckduckgo()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_email.py b/test/unit/modules/test_sfp_email.pyindex d91a7546..685b6712 100644--- a/test/unit/modules/test_sfp_email.py+++ b/test/unit/modules/test_sfp_email.py@@ -1,4 +1,3 @@-# test_sfp_email.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleEmail(unittest.TestCase):- """- Test modules.sfp_email- """def test_opts(self):module = sfp_email()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_email()module.setup(sf, dict())@@ -34,26 +26,44 @@ class TestModuleEmail(unittest.TestCase):module = sfp_email()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):- """- Test handleEvent(self, event)- """+ @unittest.skip("todo")+ def test_handleEvent_event_data_target_web_content_containing_email_address_should_return_event(self):sf = SpiderFoot(self.default_options)module = sfp_email()module.setup(sf, dict())- target_value = 'example target value'- target_type = 'IP_ADDRESS'+ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'target = SpiderFootTarget(target_value, target_type)module.setTarget(target)+ def new_notifyListeners(self, event):+ expected = 'EMAILADDR'+ if str(event.eventType) != expected:+ raise Exception(f"{event.eventType} != {expected}")++ expected = '[email protected]'+ if str(event.data) != expected:+ raise Exception(f"{event.data} != {expected}")++ raise Exception("OK")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_email)+event_type = 'ROOT'event_data = 'example data'event_module = ''source_event = ''evt = SpiderFootEvent(event_type, event_data, event_module, source_event)- result = module.handleEvent(evt)+ event_type = 'TARGET_WEB_CONTENT'+ event_data = '<p>sample data [email protected] sample data.</p>'+ event_module = 'example module'+ source_event = evt+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)++ with self.assertRaises(Exception) as cm:+ module.handleEvent(evt)- self.assertIsNone(result)+ self.assertEqual("OK", str(cm.exception))diff --git a/test/unit/modules/test_sfp_emailcrawlr.py b/test/unit/modules/test_sfp_emailcrawlr.pyindex e96a90e7..18352ee1 100644--- a/test/unit/modules/test_sfp_emailcrawlr.py+++ b/test/unit/modules/test_sfp_emailcrawlr.py@@ -1,4 +1,3 @@-# test_sfp_emailcrawlr.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleemailcrawlr(unittest.TestCase):- """- Test modules.sfp_emailcrawlr- """+class TestModuleEmailcrawlr(unittest.TestCase):def test_opts(self):module = sfp_emailcrawlr()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_emailcrawlr()module.setup(sf, dict())@@ -59,9 +51,6 @@ class TestModuleemailcrawlr(unittest.TestCase):self.assertTrue(module.errorState)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_emailcrawlr()diff --git a/test/unit/modules/test_sfp_emailformat.py b/test/unit/modules/test_sfp_emailformat.pyindex f1c31b7b..d1495f55 100644--- a/test/unit/modules/test_sfp_emailformat.py+++ b/test/unit/modules/test_sfp_emailformat.py@@ -1,28 +1,19 @@-# test_sfp_emailformat.pyimport pytestimport unittestfrom modules.sfp_emailformat import sfp_emailformatfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleemailformat(unittest.TestCase):- """- Test modules.sfp_emailformat- """+class TestModuleEmailformat(unittest.TestCase):def test_opts(self):module = sfp_emailformat()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_emailformat()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuleemailformat(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_emailformat()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_emailformat()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_emailrep.py b/test/unit/modules/test_sfp_emailrep.pyindex 63ec74e0..e5a592a6 100644--- a/test/unit/modules/test_sfp_emailrep.py+++ b/test/unit/modules/test_sfp_emailrep.py@@ -1,28 +1,19 @@-# test_sfp_emailrep.pyimport pytestimport unittestfrom modules.sfp_emailrep import sfp_emailrepfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleemailrep(unittest.TestCase):- """- Test modules.sfp_emailrep- """+class TestModuleEmailrep(unittest.TestCase):def test_opts(self):module = sfp_emailrep()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_emailrep()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuleemailrep(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_emailrep()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_emailrep()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_emergingthreats.py b/test/unit/modules/test_sfp_emergingthreats.pyindex f5e309c9..9f4f172e 100644--- a/test/unit/modules/test_sfp_emergingthreats.py+++ b/test/unit/modules/test_sfp_emergingthreats.py@@ -1,28 +1,19 @@-# test_sfp_emergingthreats.pyimport pytestimport unittestfrom modules.sfp_emergingthreats import sfp_emergingthreatsfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleemergingthreats(unittest.TestCase):- """- Test modules.sfp_emergingthreats- """+class TestModuleEmergingthreats(unittest.TestCase):def test_opts(self):module = sfp_emergingthreats()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_emergingthreats()module.setup(sf, dict())@@ -33,27 +24,3 @@ class TestModuleemergingthreats(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_emergingthreats()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_emergingthreats()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_errors.py b/test/unit/modules/test_sfp_errors.pyindex 4563e05c..9b0d64db 100644--- a/test/unit/modules/test_sfp_errors.py+++ b/test/unit/modules/test_sfp_errors.py@@ -1,4 +1,3 @@-# test_sfp_errors.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleErrors(unittest.TestCase):- """- Test modules.sfp_errors- """def test_opts(self):module = sfp_errors()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_errors()module.setup(sf, dict())diff --git a/test/unit/modules/test_sfp_ethereum.py b/test/unit/modules/test_sfp_ethereum.pyindex 5bdd7fc7..afda74a5 100644--- a/test/unit/modules/test_sfp_ethereum.py+++ b/test/unit/modules/test_sfp_ethereum.py@@ -1,4 +1,3 @@-# test_sfp_ethereum.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleEthereum(unittest.TestCase):- """- Test modules.sfp_ethereum- """def test_opts(self):module = sfp_ethereum()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_ethereum()module.setup(sf, dict())diff --git a/test/unit/modules/test_sfp_etherscan.py b/test/unit/modules/test_sfp_etherscan.pyindex 42c6265b..b8336fc8 100644--- a/test/unit/modules/test_sfp_etherscan.py+++ b/test/unit/modules/test_sfp_etherscan.py@@ -1,4 +1,3 @@-# test_sfp_etherscan.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleetherscan(unittest.TestCase):- """- Test modules.sfp_etherscan- """+class TestModuleEtherscan(unittest.TestCase):def test_opts(self):module = sfp_etherscan()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_etherscan()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleetherscan(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_etherscan()diff --git a/test/unit/modules/test_sfp_filemeta.py b/test/unit/modules/test_sfp_filemeta.pyindex ca64adfa..9d7fb26e 100644--- a/test/unit/modules/test_sfp_filemeta.py+++ b/test/unit/modules/test_sfp_filemeta.py@@ -1,28 +1,19 @@-# test_sfp_filemeta.pyimport pytestimport unittestfrom modules.sfp_filemeta import sfp_filemetafrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleFilemeta(unittest.TestCase):- """- Test modules.sfp_filemeta- """def test_opts(self):module = sfp_filemeta()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_filemeta()module.setup(sf, dict())@@ -33,27 +24,3 @@ class TestModuleFilemeta(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_filemeta()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_filemeta()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_flickr.py b/test/unit/modules/test_sfp_flickr.pyindex 3d5c0cdc..07252ee0 100644--- a/test/unit/modules/test_sfp_flickr.py+++ b/test/unit/modules/test_sfp_flickr.py@@ -1,28 +1,19 @@-# test_sfp_flickr.pyimport pytestimport unittestfrom modules.sfp_flickr import sfp_flickrfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleflickr(unittest.TestCase):- """- Test modules.sfp_flickr- """+class TestModuleFlickr(unittest.TestCase):def test_opts(self):module = sfp_flickr()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_flickr()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuleflickr(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_flickr()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_flickr()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_focsec.py b/test/unit/modules/test_sfp_focsec.pyindex 50f85b21..8032bf88 100644--- a/test/unit/modules/test_sfp_focsec.py+++ b/test/unit/modules/test_sfp_focsec.py@@ -1,4 +1,3 @@-# test_sfp_focsec.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleFocsec(unittest.TestCase):- """- Test modules.sfp_focsec- """def test_opts(self):module = sfp_focsec()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_focsec()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleFocsec(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_focsec()diff --git a/test/unit/modules/test_sfp_fortinet.py b/test/unit/modules/test_sfp_fortinet.pyindex fc6e4ef2..fbb2987c 100644--- a/test/unit/modules/test_sfp_fortinet.py+++ b/test/unit/modules/test_sfp_fortinet.py@@ -1,28 +1,19 @@-# test_sfp_fortinet.pyimport pytestimport unittestfrom modules.sfp_fortinet import sfp_fortinetfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulefortinet(unittest.TestCase):- """- Test modules.sfp_fortinet- """+class TestModuleFortinet(unittest.TestCase):def test_opts(self):module = sfp_fortinet()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_fortinet()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulefortinet(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_fortinet()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_fortinet()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_fraudguard.py b/test/unit/modules/test_sfp_fraudguard.pyindex 0d2c7a24..ef8f79ce 100644--- a/test/unit/modules/test_sfp_fraudguard.py+++ b/test/unit/modules/test_sfp_fraudguard.py@@ -1,4 +1,3 @@-# test_sfp_fraudguard.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulefraudguard(unittest.TestCase):- """- Test modules.sfp_fraudguard- """+class TestModuleFraudguard(unittest.TestCase):def test_opts(self):module = sfp_fraudguard()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_fraudguard()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulefraudguard(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_fraudguard()diff --git a/test/unit/modules/test_sfp_fsecure_riddler.py b/test/unit/modules/test_sfp_fsecure_riddler.pyindex f7f131ca..4befa271 100644--- a/test/unit/modules/test_sfp_fsecure_riddler.py+++ b/test/unit/modules/test_sfp_fsecure_riddler.py@@ -1,4 +1,3 @@-# test_sfp_fsecure_riddler.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulefsecure_riddler(unittest.TestCase):- """- Test modules.sfp_fsecure_riddler- """+class TestModuleFsecureRiddler(unittest.TestCase):def test_opts(self):module = sfp_fsecure_riddler()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_fsecure_riddler()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulefsecure_riddler(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_fsecure_riddler()diff --git a/test/unit/modules/test_sfp_fullcontact.py b/test/unit/modules/test_sfp_fullcontact.pyindex e5096541..cc17bc17 100644--- a/test/unit/modules/test_sfp_fullcontact.py+++ b/test/unit/modules/test_sfp_fullcontact.py@@ -1,4 +1,3 @@-# test_sfp_fullcontact.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulefullcontact(unittest.TestCase):- """- Test modules.sfp_fullcontact- """+class TestModuleFullcontact(unittest.TestCase):def test_opts(self):module = sfp_fullcontact()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_fullcontact()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulefullcontact(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_fullcontact()diff --git a/test/unit/modules/test_sfp_fullhunt.py b/test/unit/modules/test_sfp_fullhunt.pyindex 6c764424..0d7af604 100644--- a/test/unit/modules/test_sfp_fullhunt.py+++ b/test/unit/modules/test_sfp_fullhunt.py@@ -1,4 +1,3 @@-# test_sfp_fullhunt.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleFullhunt(unittest.TestCase):- """- Test modules.sfp_fullhunt- """def test_opts(self):module = sfp_fullhunt()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_fullhunt()module.setup(sf, dict())@@ -59,9 +51,6 @@ class TestModuleFullhunt(unittest.TestCase):self.assertTrue(module.errorState)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_fullhunt()diff --git a/test/unit/modules/test_sfp_github.py b/test/unit/modules/test_sfp_github.pyindex 2d7954b6..8e088872 100644--- a/test/unit/modules/test_sfp_github.py+++ b/test/unit/modules/test_sfp_github.py@@ -1,4 +1,3 @@-# test_sfp_github.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulegithub(unittest.TestCase):- """- Test modules.sfp_github- """+class TestModuleGithub(unittest.TestCase):def test_opts(self):module = sfp_github()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_github()module.setup(sf, dict())@@ -34,27 +26,34 @@ class TestModulegithub(unittest.TestCase):module = sfp_github()self.assertIsInstance(module.producedEvents(), list)- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """+ def test_handleEvent_event_data_social_media_not_github_profile_should_not_return_event(self):sf = SpiderFoot(self.default_options)module = sfp_github()module.setup(sf, dict())- target_value = 'example target value'- target_type = 'IP_ADDRESS'+ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'target = SpiderFootTarget(target_value, target_type)module.setTarget(target)+ def new_notifyListeners(self, event):+ raise Exception(f"Raised event {event.eventType}: {event.data}")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_github)+event_type = 'ROOT'event_data = 'example data'event_module = ''source_event = ''evt = SpiderFootEvent(event_type, event_data, event_module, source_event)+ event_type = 'SOCIAL_MEDIA'+ event_data = 'Not GitHub: example_username'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)result = module.handleEvent(evt)self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_gleif.py b/test/unit/modules/test_sfp_gleif.pyindex fde081b2..7bd29db0 100644--- a/test/unit/modules/test_sfp_gleif.py+++ b/test/unit/modules/test_sfp_gleif.py@@ -1,4 +1,3 @@-# test_sfp_gleif.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleGleif(unittest.TestCase):- """- Test modules.sfp_gleif- """def test_opts(self):module = sfp_gleif()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_gleif()module.setup(sf, dict())@@ -34,27 +26,33 @@ class TestModuleGleif(unittest.TestCase):module = sfp_gleif()self.assertIsInstance(module.producedEvents(), list)- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """+ def test_handleEvent_event_data_invalid_lei_should_not_return_event(self):sf = SpiderFoot(self.default_options)module = sfp_gleif()module.setup(sf, dict())- target_value = '7ZW8QJWVPR4P1J1KQY45'- target_type = 'LEI'+ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'target = SpiderFootTarget(target_value, target_type)module.setTarget(target)+ def new_notifyListeners(self, event):+ raise Exception(f"Raised event {event.eventType}: {event.data}")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_gleif)+event_type = 'ROOT'event_data = 'example data'event_module = ''source_event = ''evt = SpiderFootEvent(event_type, event_data, event_module, source_event)+ event_type = 'LEI'+ event_data = 'invalid LEI'+ event_module = 'example module'+ source_event = evt+ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)result = module.handleEvent(evt)self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_googlemaps.py b/test/unit/modules/test_sfp_googlemaps.pyindex 1706cc94..4d48008b 100644--- a/test/unit/modules/test_sfp_googlemaps.py+++ b/test/unit/modules/test_sfp_googlemaps.py@@ -1,4 +1,3 @@-# test_sfp_googlemaps.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulegooglemaps(unittest.TestCase):- """- Test modules.sfp_googlemaps- """+class TestModuleGoogleMaps(unittest.TestCase):def test_opts(self):module = sfp_googlemaps()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_googlemaps()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulegooglemaps(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_googlemaps()diff --git a/test/unit/modules/test_sfp_googleobjectstorage.py b/test/unit/modules/test_sfp_googleobjectstorage.pyindex a4aa3923..eca5e897 100644--- a/test/unit/modules/test_sfp_googleobjectstorage.py+++ b/test/unit/modules/test_sfp_googleobjectstorage.py@@ -1,28 +1,19 @@-# test_sfp_googleobjectstorage.pyimport pytestimport unittestfrom modules.sfp_googleobjectstorage import sfp_googleobjectstoragefrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulegoogleobjectstorage(unittest.TestCase):- """- Test modules.sfp_googleobjectstorage- """+class TestModuleGoogleobjectstorage(unittest.TestCase):def test_opts(self):module = sfp_googleobjectstorage()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_googleobjectstorage()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulegoogleobjectstorage(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_googleobjectstorage()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_googleobjectstorage()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_googlesafebrowsing.py b/test/unit/modules/test_sfp_googlesafebrowsing.pyindex 018f2d58..02580b9c 100644--- a/test/unit/modules/test_sfp_googlesafebrowsing.py+++ b/test/unit/modules/test_sfp_googlesafebrowsing.py@@ -1,4 +1,3 @@-# test_sfp_googlesafebrowsing.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulegooglesafebrowsing(unittest.TestCase):- """- Test modules.sfp_googlesafebrowsing- """+class TestModuleGoogleSafebrowsing(unittest.TestCase):def test_opts(self):module = sfp_googlesafebrowsing()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_googlesafebrowsing()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulegooglesafebrowsing(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_googlesafebrowsing()diff --git a/test/unit/modules/test_sfp_googlesearch.py b/test/unit/modules/test_sfp_googlesearch.pyindex 742de861..b823bc35 100644--- a/test/unit/modules/test_sfp_googlesearch.py+++ b/test/unit/modules/test_sfp_googlesearch.py@@ -1,4 +1,3 @@-# test_sfp_googlesearch.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulegooglesearch(unittest.TestCase):- """- Test modules.sfp_googlesearch- """+class TestModuleGoogleSearch(unittest.TestCase):def test_opts(self):module = sfp_googlesearch()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_googlesearch()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulegooglesearch(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_googlesearch()diff --git a/test/unit/modules/test_sfp_gravatar.py b/test/unit/modules/test_sfp_gravatar.pyindex 1c88f76b..a19152c3 100644--- a/test/unit/modules/test_sfp_gravatar.py+++ b/test/unit/modules/test_sfp_gravatar.py@@ -1,28 +1,19 @@-# test_sfp_gravatar.pyimport pytestimport unittestfrom modules.sfp_gravatar import sfp_gravatarfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulegravatar(unittest.TestCase):- """- Test modules.sfp_gravatar- """+class TestModuleGravatar(unittest.TestCase):def test_opts(self):module = sfp_gravatar()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_gravatar()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulegravatar(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_gravatar()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_gravatar()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_grayhatwarfare.py b/test/unit/modules/test_sfp_grayhatwarfare.pyindex 32c37cf3..f3c31f74 100644--- a/test/unit/modules/test_sfp_grayhatwarfare.py+++ b/test/unit/modules/test_sfp_grayhatwarfare.py@@ -1,4 +1,3 @@-# test_sfp_grayhatwarfare.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleGrayhatWarfare(unittest.TestCase):- """- Test modules.sfp_grayhatwarfare- """def test_opts(self):module = sfp_grayhatwarfare()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_grayhatwarfare()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleGrayhatWarfare(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_grayhatwarfare()diff --git a/test/unit/modules/test_sfp_greensnow.py b/test/unit/modules/test_sfp_greensnow.pyindex 288880f8..5a0bcacf 100644--- a/test/unit/modules/test_sfp_greensnow.py+++ b/test/unit/modules/test_sfp_greensnow.py@@ -1,28 +1,19 @@-# test_sfp_greensnow.pyimport pytestimport unittestfrom modules.sfp_greensnow import sfp_greensnowfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulegreensnow(unittest.TestCase):- """- Test modules.sfp_greensnow- """+class TestModuleGreensnow(unittest.TestCase):def test_opts(self):module = sfp_greensnow()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_greensnow()module.setup(sf, dict())@@ -33,27 +24,3 @@ class TestModulegreensnow(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_greensnow()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_greensnow()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_grep_app.py b/test/unit/modules/test_sfp_grep_app.pyindex 928b6ca7..0bec1f99 100644--- a/test/unit/modules/test_sfp_grep_app.py+++ b/test/unit/modules/test_sfp_grep_app.py@@ -1,28 +1,19 @@-# test_sfp_grep_app.pyimport pytestimport unittestfrom modules.sfp_grep_app import sfp_grep_appfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulegrep_app(unittest.TestCase):- """- Test modules.sfp_grep_app- """+class TestModuleGrepApp(unittest.TestCase):def test_opts(self):module = sfp_grep_app()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_grep_app()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulegrep_app(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_grep_app()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_grep_app()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_greynoise.py b/test/unit/modules/test_sfp_greynoise.pyindex 58f3f6d4..b9a53320 100644--- a/test/unit/modules/test_sfp_greynoise.py+++ b/test/unit/modules/test_sfp_greynoise.py@@ -1,4 +1,3 @@-# test_sfp_greynoise.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulegreynoise(unittest.TestCase):- """- Test modules.sfp_greynoise- """+class TestModuleGreynoise(unittest.TestCase):def test_opts(self):module = sfp_greynoise()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_greynoise()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulegreynoise(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_greynoise()diff --git a/test/unit/modules/test_sfp_h1nobbdde.py b/test/unit/modules/test_sfp_h1nobbdde.pyindex 74c5a40c..ee1c3337 100644--- a/test/unit/modules/test_sfp_h1nobbdde.py+++ b/test/unit/modules/test_sfp_h1nobbdde.py@@ -1,28 +1,19 @@-# test_sfp_h1nobbdde.pyimport pytestimport unittestfrom modules.sfp_h1nobbdde import sfp_h1nobbddefrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleh1nobbdde(unittest.TestCase):- """- Test modules.sfp_h1nobbdde- """+class TestModuleH1nobbdde(unittest.TestCase):def test_opts(self):module = sfp_h1nobbdde()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_h1nobbdde()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuleh1nobbdde(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_h1nobbdde()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_h1nobbdde()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_hackertarget.py b/test/unit/modules/test_sfp_hackertarget.pyindex c298792a..6a21339e 100644--- a/test/unit/modules/test_sfp_hackertarget.py+++ b/test/unit/modules/test_sfp_hackertarget.py@@ -1,28 +1,19 @@-# test_sfp_hackertarget.pyimport pytestimport unittestfrom modules.sfp_hackertarget import sfp_hackertargetfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulehackertarget(unittest.TestCase):- """- Test modules.sfp_hackertarget- """+class TestModuleHackertarget(unittest.TestCase):def test_opts(self):module = sfp_hackertarget()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_hackertarget()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulehackertarget(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_hackertarget()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_hackertarget()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_hashes.py b/test/unit/modules/test_sfp_hashes.pyindex 08f966bb..1bf7074a 100644--- a/test/unit/modules/test_sfp_hashes.py+++ b/test/unit/modules/test_sfp_hashes.py@@ -1,4 +1,3 @@-# test_sfp_hashes.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleHashes(unittest.TestCase):- """- Test modules.sfp_hashes- """def test_opts(self):module = sfp_hashes()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_hashes()module.setup(sf, dict())diff --git a/test/unit/modules/test_sfp_haveibeenpwned.py b/test/unit/modules/test_sfp_haveibeenpwned.pyindex 227503c6..88bfa42c 100644--- a/test/unit/modules/test_sfp_haveibeenpwned.py+++ b/test/unit/modules/test_sfp_haveibeenpwned.py@@ -1,4 +1,3 @@-# test_sfp_haveibeenpwned.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulehaveibeenpwned(unittest.TestCase):- """- Test modules.sfp_haveibeenpwned- """+class TestModuleHaveibeenpwned(unittest.TestCase):def test_opts(self):module = sfp_haveibeenpwned()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_haveibeenpwned()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulehaveibeenpwned(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_haveibeenpwned()diff --git a/test/unit/modules/test_sfp_honeypot.py b/test/unit/modules/test_sfp_honeypot.pyindex 166b8359..f30d00a0 100644--- a/test/unit/modules/test_sfp_honeypot.py+++ b/test/unit/modules/test_sfp_honeypot.py@@ -1,4 +1,3 @@-# test_sfp_honeypot.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulehoneypot(unittest.TestCase):- """- Test modules.sfp_honeypot- """+class TestModuleHoneypot(unittest.TestCase):def test_opts(self):module = sfp_honeypot()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_honeypot()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulehoneypot(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_honeypot()diff --git a/test/unit/modules/test_sfp_hosting.py b/test/unit/modules/test_sfp_hosting.pyindex 91ba24b5..c2279531 100644--- a/test/unit/modules/test_sfp_hosting.py+++ b/test/unit/modules/test_sfp_hosting.py@@ -1,28 +1,19 @@-# test_sfp_hosting.pyimport pytestimport unittestfrom modules.sfp_hosting import sfp_hostingfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleHosting(unittest.TestCase):- """- Test modules.sfp_hosting- """def test_opts(self):module = sfp_hosting()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_hosting()module.setup(sf, dict())@@ -33,67 +24,3 @@ class TestModuleHosting(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_hosting()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent_event_data_ip_address_hosted_should_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_hosting()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- expected = 'PROVIDER_HOSTING'- if str(event.eventType) != expected:- raise Exception(f"{event.eventType} != {expected}")-- expected = "Amazon AWS: http://www.amazon.com/aws/"- if str(event.data) != expected:- raise Exception(f"{event.data} != {expected}")-- raise Exception("OK")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_hosting)-- event_type = 'ROOT'- event_data = '3.1.1.1'- event_module = ''- source_event = ''-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- with self.assertRaises(Exception) as cm:- module.handleEvent(evt)-- self.assertEqual("OK", str(cm.exception))-- @unittest.skip("todo")- def test_handleEvent_event_data_ip_address_not_hosted_should_not_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_hosting()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- raise Exception(f"Raised event {event.eventType}: {event.data}")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_hosting)-- event_type = 'ROOT'- event_data = '127.0.0.1'- event_module = ''- source_event = ''-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_hostio.py b/test/unit/modules/test_sfp_hostio.pyindex ec7f771e..2f5f5447 100644--- a/test/unit/modules/test_sfp_hostio.py+++ b/test/unit/modules/test_sfp_hostio.py@@ -1,4 +1,3 @@-# test_sfp_hostio.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulehostio(unittest.TestCase):- """- Test modules.sfp_hostio- """+class TestModuleHostio(unittest.TestCase):def test_opts(self):module = sfp_hostio()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_hostio()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulehostio(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_hostio()diff --git a/test/unit/modules/test_sfp_hunter.py b/test/unit/modules/test_sfp_hunter.pyindex 1b1fbbf5..d9a05b8b 100644--- a/test/unit/modules/test_sfp_hunter.py+++ b/test/unit/modules/test_sfp_hunter.py@@ -1,4 +1,3 @@-# test_sfp_hunter.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulehunter(unittest.TestCase):- """- Test modules.sfp_hunter- """+class TestModuleHunter(unittest.TestCase):def test_opts(self):module = sfp_hunter()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_hunter()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulehunter(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_hunter()diff --git a/test/unit/modules/test_sfp_hybrid_analysis.py b/test/unit/modules/test_sfp_hybrid_analysis.pyindex 9e8ffb5b..67efd8ac 100644--- a/test/unit/modules/test_sfp_hybrid_analysis.py+++ b/test/unit/modules/test_sfp_hybrid_analysis.py@@ -1,28 +1,19 @@-# test_sfp_hybrid_analysis.pyimport pytestimport unittestfrom modules.sfp_hybrid_analysis import sfp_hybrid_analysisfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulehybrid_analysis(unittest.TestCase):- """- Test modules.sfp_hybrid_analysis- """+class TestModuleHybridAnalysis(unittest.TestCase):def test_opts(self):module = sfp_hybrid_analysis()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_hybrid_analysis()module.setup(sf, dict())@@ -57,27 +48,3 @@ class TestModulehybrid_analysis(unittest.TestCase):result = module.parseApiResponse({"code": code, "content": None})self.assertIsNone(result)self.assertTrue(module.errorState)-- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_hybrid_analysis()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_iban.py b/test/unit/modules/test_sfp_iban.pyindex eebcaf8e..5ad0a8e9 100644--- a/test/unit/modules/test_sfp_iban.py+++ b/test/unit/modules/test_sfp_iban.py@@ -1,4 +1,3 @@-# test_sfp_iban.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleIban(unittest.TestCase):- """- Test modules.sfp_iban- """def test_opts(self):module = sfp_iban()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_iban()module.setup(sf, dict())diff --git a/test/unit/modules/test_sfp_iknowwhatyoudownload.py b/test/unit/modules/test_sfp_iknowwhatyoudownload.pyindex 2b8fe467..f3b357fa 100644--- a/test/unit/modules/test_sfp_iknowwhatyoudownload.py+++ b/test/unit/modules/test_sfp_iknowwhatyoudownload.py@@ -1,4 +1,3 @@-# test_sfp_iknowwhatyoudownload.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleiknowwhatyoudownload(unittest.TestCase):- """- Test modules.sfp_iknowwhatyoudownload- """+class TestModuleIknowwhatyoudownload(unittest.TestCase):def test_opts(self):module = sfp_iknowwhatyoudownload()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_iknowwhatyoudownload()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleiknowwhatyoudownload(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_iknowwhatyoudownload()diff --git a/test/unit/modules/test_sfp_instagram.py b/test/unit/modules/test_sfp_instagram.pyindex 3e3418f5..d71bd441 100644--- a/test/unit/modules/test_sfp_instagram.py+++ b/test/unit/modules/test_sfp_instagram.py@@ -1,4 +1,3 @@-# test_sfp_instagram.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleinstagram(unittest.TestCase):- """- Test modules.sfp_instagram- """+class TestModuleInstagram(unittest.TestCase):def test_opts(self):module = sfp_instagram()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_instagram()module.setup(sf, dict())@@ -34,26 +26,34 @@ class TestModuleinstagram(unittest.TestCase):module = sfp_instagram()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):- """- Test handleEvent(self, event)- """+ def test_handleEvent_event_data_social_media_not_instagram_profile_should_not_return_event(self):sf = SpiderFoot(self.default_options)module = sfp_instagram()module.setup(sf, dict())- target_value = 'example target value'- target_type = 'IP_ADDRESS'+ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'target = SpiderFootTarget(target_value, target_type)module.setTarget(target)+ def new_notifyListeners(self, event):+ raise Exception(f"Raised event {event.eventType}: {event.data}")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_instagram)+event_type = 'ROOT'event_data = 'example data'event_module = ''source_event = ''evt = SpiderFootEvent(event_type, event_data, event_module, source_event)+ event_type = 'SOCIAL_MEDIA'+ event_data = 'Not Instagram: example_username'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)result = module.handleEvent(evt)self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_intelx.py b/test/unit/modules/test_sfp_intelx.pyindex 452c8ad7..084aa973 100644--- a/test/unit/modules/test_sfp_intelx.py+++ b/test/unit/modules/test_sfp_intelx.py@@ -1,4 +1,3 @@-# test_sfp_intelx.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleintelx(unittest.TestCase):- """- Test modules.sfp_intelx- """+class TestModuleIntelx(unittest.TestCase):def test_opts(self):module = sfp_intelx()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_intelx()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleintelx(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_intelx()diff --git a/test/unit/modules/test_sfp_intfiles.py b/test/unit/modules/test_sfp_intfiles.pyindex 89c155f3..a1bf5bed 100644--- a/test/unit/modules/test_sfp_intfiles.py+++ b/test/unit/modules/test_sfp_intfiles.py@@ -1,4 +1,3 @@-# test_sfp_intfiles.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleintfiles(unittest.TestCase):- """- Test modules.sfp_intfiles- """+class TestModuleIntfiles(unittest.TestCase):def test_opts(self):module = sfp_intfiles()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_intfiles()module.setup(sf, dict())diff --git a/test/unit/modules/test_sfp_ipapico.py b/test/unit/modules/test_sfp_ipapico.pyindex fc618ede..562efa46 100644--- a/test/unit/modules/test_sfp_ipapico.py+++ b/test/unit/modules/test_sfp_ipapico.py@@ -1,26 +1,18 @@-# test_sfp_ipapico.pyimport pytestimport unittestfrom modules.sfp_ipapico import sfp_ipapicofrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleipapicom(unittest.TestCase):- """- Test modules.sfp_ipapico- """+class TestModuleipApico(unittest.TestCase):def test_opts(self):module = sfp_ipapico()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)module = sfp_ipapico()@@ -33,28 +25,3 @@ class TestModuleipapicom(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_ipapico()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_ipapico()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_ipapicom.py b/test/unit/modules/test_sfp_ipapicom.pyindex 37e956a1..640a93c9 100644--- a/test/unit/modules/test_sfp_ipapicom.py+++ b/test/unit/modules/test_sfp_ipapicom.py@@ -1,4 +1,3 @@-# test_sfp_ipapicom.pyimport pytestimport unittest@@ -9,18 +8,12 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleipapicom(unittest.TestCase):- """- Test modules.sfp_ipapicom- """def test_opts(self):module = sfp_ipapicom()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)module = sfp_ipapicom()@@ -35,9 +28,6 @@ class TestModuleipapicom(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_ipapicom()diff --git a/test/unit/modules/test_sfp_ipinfo.py b/test/unit/modules/test_sfp_ipinfo.pyindex 2cab8f3c..52526db4 100644--- a/test/unit/modules/test_sfp_ipinfo.py+++ b/test/unit/modules/test_sfp_ipinfo.py@@ -1,4 +1,3 @@-# test_sfp_ipinfo.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleipinfo(unittest.TestCase):- """- Test modules.sfp_ipinfo- """+class TestModuleIpinfo(unittest.TestCase):def test_opts(self):module = sfp_ipinfo()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_ipinfo()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleipinfo(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_ipinfo()diff --git a/test/unit/modules/test_sfp_ipqualityscore.py b/test/unit/modules/test_sfp_ipqualityscore.pyindex 5631eed1..4c6595c3 100644--- a/test/unit/modules/test_sfp_ipqualityscore.py+++ b/test/unit/modules/test_sfp_ipqualityscore.py@@ -1,4 +1,3 @@-# test_sfp_ipqualityscore.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleipqualityscore(unittest.TestCase):- """- Test modules.sfp_ipqualityscore- """+class TestModuleIpqualityscore(unittest.TestCase):def test_opts(self):module = sfp_ipqualityscore()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_ipqualityscore()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleipqualityscore(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_ipqualityscore()diff --git a/test/unit/modules/test_sfp_ipregistry.py b/test/unit/modules/test_sfp_ipregistry.pyindex c8a63900..bdc49a8b 100644--- a/test/unit/modules/test_sfp_ipregistry.py+++ b/test/unit/modules/test_sfp_ipregistry.py@@ -1,4 +1,3 @@-# test_sfp_ipregistry.pyimport pytestimport unittest@@ -8,19 +7,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuletemplate(unittest.TestCase):- """- Test modules.sfp_ipregistry- """+class TestModuleIpRegistry(unittest.TestCase):def test_opts(self):module = sfp_ipregistry()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)module = sfp_ipregistry()@@ -35,9 +28,6 @@ class TestModuletemplate(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_ipregistry()diff --git a/test/unit/modules/test_sfp_ipstack.py b/test/unit/modules/test_sfp_ipstack.pyindex 7ec37772..5022a48d 100644--- a/test/unit/modules/test_sfp_ipstack.py+++ b/test/unit/modules/test_sfp_ipstack.py@@ -1,4 +1,3 @@-# test_sfp_ipstack.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleipstack(unittest.TestCase):- """- Test modules.sfp_ipstack- """+class TestModuleIpstack(unittest.TestCase):def test_opts(self):module = sfp_ipstack()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_ipstack()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleipstack(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_ipstack()diff --git a/test/unit/modules/test_sfp_isc.py b/test/unit/modules/test_sfp_isc.pyindex 0e42961f..2c622f3e 100644--- a/test/unit/modules/test_sfp_isc.py+++ b/test/unit/modules/test_sfp_isc.py@@ -1,28 +1,19 @@-# test_sfp_isc.pyimport pytestimport unittestfrom modules.sfp_isc import sfp_iscfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleisc(unittest.TestCase):- """- Test modules.sfp_isc- """def test_opts(self):module = sfp_isc()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_isc()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuleisc(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_isc()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_isc()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_jsonwhoiscom.py b/test/unit/modules/test_sfp_jsonwhoiscom.pyindex 6c582067..3e4fce4b 100644--- a/test/unit/modules/test_sfp_jsonwhoiscom.py+++ b/test/unit/modules/test_sfp_jsonwhoiscom.py@@ -1,4 +1,3 @@-# test_sfp_jsonwhoiscom.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulejsonwhoiscom(unittest.TestCase):- """- Test modules.sfp_jsonwhoiscom- """+class TestModuleJsonwhoiscom(unittest.TestCase):def test_opts(self):module = sfp_jsonwhoiscom()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_jsonwhoiscom()module.setup(sf, dict())@@ -59,9 +51,6 @@ class TestModulejsonwhoiscom(unittest.TestCase):self.assertTrue(module.errorState)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_jsonwhoiscom()diff --git a/test/unit/modules/test_sfp_junkfiles.py b/test/unit/modules/test_sfp_junkfiles.pyindex 220e1e02..40bb80d4 100644--- a/test/unit/modules/test_sfp_junkfiles.py+++ b/test/unit/modules/test_sfp_junkfiles.py@@ -1,28 +1,19 @@-# test_sfp_junkfiles.pyimport pytestimport unittestfrom modules.sfp_junkfiles import sfp_junkfilesfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulejunkfiles(unittest.TestCase):- """- Test modules.sfp_junkfiles- """+class TestModuleJunkfiles(unittest.TestCase):def test_opts(self):module = sfp_junkfiles()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_junkfiles()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulejunkfiles(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_junkfiles()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_junkfiles()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_keybase.py b/test/unit/modules/test_sfp_keybase.pyindex c43393d8..943342d6 100644--- a/test/unit/modules/test_sfp_keybase.py+++ b/test/unit/modules/test_sfp_keybase.py@@ -1,28 +1,19 @@-# test_sfp_keybase.pyimport pytestimport unittestfrom modules.sfp_keybase import sfp_keybasefrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulekeybase(unittest.TestCase):- """- Test modules.sfp_keybase- """+class TestModuleKeybase(unittest.TestCase):def test_opts(self):module = sfp_keybase()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_keybase()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulekeybase(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_keybase()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_keybase()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_koodous.py b/test/unit/modules/test_sfp_koodous.pyindex b4320164..735af780 100644--- a/test/unit/modules/test_sfp_koodous.py+++ b/test/unit/modules/test_sfp_koodous.py@@ -1,28 +1,19 @@-# test_sfp_koodous.pyimport pytestimport unittestfrom modules.sfp_koodous import sfp_koodousfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleKoodous(unittest.TestCase):- """- Test modules.sfp_koodous- """def test_opts(self):module = sfp_koodous()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_koodous()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuleKoodous(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_koodous()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_koodous()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_leakix.py b/test/unit/modules/test_sfp_leakix.pyindex feedcb3a..6f23b4fd 100644--- a/test/unit/modules/test_sfp_leakix.py+++ b/test/unit/modules/test_sfp_leakix.py@@ -1,28 +1,19 @@-# test_sfp_leakix.pyimport pytestimport unittestfrom modules.sfp_leakix import sfp_leakixfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleleakix(unittest.TestCase):- """- Test modules.sfp_leakix- """+class TestModuleLeakix(unittest.TestCase):def test_opts(self):module = sfp_leakix()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_leakix()module.setup(sf, dict())@@ -57,27 +48,3 @@ class TestModuleleakix(unittest.TestCase):result = module.parseApiResponse({"code": code, "content": None})self.assertIsNone(result)self.assertTrue(module.errorState)-- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_leakix()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_maltiverse.py b/test/unit/modules/test_sfp_maltiverse.pyindex 93696023..42f0f945 100644--- a/test/unit/modules/test_sfp_maltiverse.py+++ b/test/unit/modules/test_sfp_maltiverse.py@@ -1,28 +1,19 @@-# test_sfp_maltiverse.pyimport pytestimport unittestfrom modules.sfp_maltiverse import sfp_maltiversefrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulemaltiverse(unittest.TestCase):- """- Test modules.sfp_maltiverse- """+class TestModuleMaltiverse(unittest.TestCase):def test_opts(self):module = sfp_maltiverse()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_maltiverse()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulemaltiverse(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_maltiverse()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_maltiverse()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_malwarepatrol.py b/test/unit/modules/test_sfp_malwarepatrol.pyindex 5ddf6f7d..b1e456e8 100644--- a/test/unit/modules/test_sfp_malwarepatrol.py+++ b/test/unit/modules/test_sfp_malwarepatrol.py@@ -1,4 +1,3 @@-# test_sfp_malwarepatrol.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModulemalwarepatrol(unittest.TestCase):- """- Test modules.sfp_malwarepatrol- """def test_opts(self):module = sfp_malwarepatrol()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_malwarepatrol()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulemalwarepatrol(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_malwarepatrol()@@ -57,3 +46,4 @@ class TestModulemalwarepatrol(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_metadefender.py b/test/unit/modules/test_sfp_metadefender.pyindex e9e39c6f..f9367c2f 100644--- a/test/unit/modules/test_sfp_metadefender.py+++ b/test/unit/modules/test_sfp_metadefender.py@@ -1,4 +1,3 @@-# test_sfp_metadefender.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulemetadefender(unittest.TestCase):- """- Test modules.sfp_metadefender- """+class TestModuleMetadefender(unittest.TestCase):def test_opts(self):module = sfp_metadefender()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_metadefender()module.setup(sf, dict())@@ -60,9 +52,6 @@ class TestModulemetadefender(unittest.TestCase):self.assertTrue(module.errorState)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_metadefender()diff --git a/test/unit/modules/test_sfp_mnemonic.py b/test/unit/modules/test_sfp_mnemonic.pyindex edb5347e..11046759 100644--- a/test/unit/modules/test_sfp_mnemonic.py+++ b/test/unit/modules/test_sfp_mnemonic.py@@ -1,28 +1,19 @@-# test_sfp_mnemonic.pyimport pytestimport unittestfrom modules.sfp_mnemonic import sfp_mnemonicfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulemnemonic(unittest.TestCase):- """- Test modules.sfp_mnemonic- """+class TestModuleMnemonic(unittest.TestCase):def test_opts(self):module = sfp_mnemonic()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_mnemonic()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulemnemonic(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_mnemonic()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_mnemonic()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_multiproxy.py b/test/unit/modules/test_sfp_multiproxy.pyindex d94e0b6a..9688731b 100644--- a/test/unit/modules/test_sfp_multiproxy.py+++ b/test/unit/modules/test_sfp_multiproxy.py@@ -1,28 +1,19 @@-# test_sfp_multiproxy.pyimport pytestimport unittestfrom modules.sfp_multiproxy import sfp_multiproxyfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulemultiproxy(unittest.TestCase):- """- Test modules.sfp_multiproxy- """+class TestModuleMultiproxy(unittest.TestCase):def test_opts(self):module = sfp_multiproxy()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_multiproxy()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulemultiproxy(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_multiproxy()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_multiproxy()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_myspace.py b/test/unit/modules/test_sfp_myspace.pyindex 9d53dd8e..c7b3205c 100644--- a/test/unit/modules/test_sfp_myspace.py+++ b/test/unit/modules/test_sfp_myspace.py@@ -1,4 +1,3 @@-# test_sfp_myspace.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulemyspace(unittest.TestCase):- """- Test modules.sfp_myspace- """+class TestModuleMyspace(unittest.TestCase):def test_opts(self):module = sfp_myspace()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_myspace()module.setup(sf, dict())@@ -34,26 +26,34 @@ class TestModulemyspace(unittest.TestCase):module = sfp_myspace()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):- """- Test handleEvent(self, event)- """+ def test_handleEvent_event_data_social_media_not_myspace_profile_should_not_return_event(self):sf = SpiderFoot(self.default_options)module = sfp_myspace()module.setup(sf, dict())- target_value = 'example target value'- target_type = 'IP_ADDRESS'+ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'target = SpiderFootTarget(target_value, target_type)module.setTarget(target)+ def new_notifyListeners(self, event):+ raise Exception(f"Raised event {event.eventType}: {event.data}")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_myspace)+event_type = 'ROOT'event_data = 'example data'event_module = ''source_event = ''evt = SpiderFootEvent(event_type, event_data, event_module, source_event)+ event_type = 'SOCIAL_MEDIA'+ event_data = 'Not MySpace: example_username'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)result = module.handleEvent(evt)self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_nameapi.py b/test/unit/modules/test_sfp_nameapi.pyindex 66f559ad..c7eceaf6 100644--- a/test/unit/modules/test_sfp_nameapi.py+++ b/test/unit/modules/test_sfp_nameapi.py@@ -1,4 +1,3 @@-# test_sfp_nameapi.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulenameapi(unittest.TestCase):- """- Test modules.sfp_nameapi- """+class TestModuleNameapi(unittest.TestCase):def test_opts(self):module = sfp_nameapi()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_nameapi()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulenameapi(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_nameapi()diff --git a/test/unit/modules/test_sfp_names.py b/test/unit/modules/test_sfp_names.pyindex e4996b16..4fd07ed2 100644--- a/test/unit/modules/test_sfp_names.py+++ b/test/unit/modules/test_sfp_names.py@@ -1,4 +1,3 @@-# test_sfp_names.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleNames(unittest.TestCase):- """- Test modules.sfp_names- """def test_opts(self):module = sfp_names()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_names()module.setup(sf, dict())diff --git a/test/unit/modules/test_sfp_networksdb.py b/test/unit/modules/test_sfp_networksdb.pyindex ce30af3d..0a385820 100644--- a/test/unit/modules/test_sfp_networksdb.py+++ b/test/unit/modules/test_sfp_networksdb.py@@ -1,4 +1,3 @@-# test_sfp_networksdb.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulenetworksdb(unittest.TestCase):- """- Test modules.sfp_networksdb- """+class TestModuleNetworksdb(unittest.TestCase):def test_opts(self):module = sfp_networksdb()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_networksdb()module.setup(sf, dict())@@ -60,9 +52,6 @@ class TestModulenetworksdb(unittest.TestCase):self.assertTrue(module.errorState)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_networksdb()diff --git a/test/unit/modules/test_sfp_neutrinoapi.py b/test/unit/modules/test_sfp_neutrinoapi.pyindex 3a832e55..88c344ab 100644--- a/test/unit/modules/test_sfp_neutrinoapi.py+++ b/test/unit/modules/test_sfp_neutrinoapi.py@@ -1,4 +1,3 @@-# test_sfp_neutrinoapi.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleneutrinoapi(unittest.TestCase):- """- Test modules.sfp_neutrinoapi- """+class TestModuleNeutrinoapi(unittest.TestCase):def test_opts(self):module = sfp_neutrinoapi()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_neutrinoapi()module.setup(sf, dict())@@ -60,9 +52,6 @@ class TestModuleneutrinoapi(unittest.TestCase):self.assertTrue(module.errorState)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_neutrinoapi()diff --git a/test/unit/modules/test_sfp_numverify.py b/test/unit/modules/test_sfp_numverify.pyindex ecde8c4e..33ff6035 100644--- a/test/unit/modules/test_sfp_numverify.py+++ b/test/unit/modules/test_sfp_numverify.py@@ -1,4 +1,3 @@-# test_sfp_numverify.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulenumverify(unittest.TestCase):- """- Test modules.sfp_numverify- """+class TestModuleNumverify(unittest.TestCase):def test_opts(self):module = sfp_numverify()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_numverify()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulenumverify(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_numverify()diff --git a/test/unit/modules/test_sfp_onioncity.py b/test/unit/modules/test_sfp_onioncity.pyindex aa1aa186..f46185b5 100644--- a/test/unit/modules/test_sfp_onioncity.py+++ b/test/unit/modules/test_sfp_onioncity.py@@ -1,4 +1,3 @@-# test_sfp_onioncity.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleonioncity(unittest.TestCase):- """- Test modules.sfp_onioncity- """def test_opts(self):module = sfp_onioncity()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_onioncity()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleonioncity(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_onioncity()diff --git a/test/unit/modules/test_sfp_onionsearchengine.py b/test/unit/modules/test_sfp_onionsearchengine.pyindex a7381a8e..96ed5f71 100644--- a/test/unit/modules/test_sfp_onionsearchengine.py+++ b/test/unit/modules/test_sfp_onionsearchengine.py@@ -1,28 +1,19 @@-# test_sfp_onionsearchengine.pyimport pytestimport unittestfrom modules.sfp_onionsearchengine import sfp_onionsearchenginefrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleonionsearchengine(unittest.TestCase):- """- Test modules.sfp_onionsearchengine- """+class TestModuleOnionsearchengine(unittest.TestCase):def test_opts(self):module = sfp_onionsearchengine()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_onionsearchengine()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuleonionsearchengine(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_onionsearchengine()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_onionsearchengine()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_onyphe.py b/test/unit/modules/test_sfp_onyphe.pyindex 035dd2a1..2a7a930b 100644--- a/test/unit/modules/test_sfp_onyphe.py+++ b/test/unit/modules/test_sfp_onyphe.py@@ -1,4 +1,3 @@-# test_sfp_onyphe.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleOnyphe(unittest.TestCase):- """- Test modules.sfp_onyphe- """def test_opts(self):module = sfp_onyphe()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_onyphe()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleOnyphe(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_onyphe()diff --git a/test/unit/modules/test_sfp_open_passive_dns_database.py b/test/unit/modules/test_sfp_open_passive_dns_database.pyindex f5c90a57..9e647fb8 100644--- a/test/unit/modules/test_sfp_open_passive_dns_database.py+++ b/test/unit/modules/test_sfp_open_passive_dns_database.py@@ -1,28 +1,19 @@-# test_sfp_open_passive_dns_database.pyimport pytestimport unittestfrom modules.sfp_open_passive_dns_database import sfp_open_passive_dns_databasefrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleopen_passive_dns_database(unittest.TestCase):- """- Test modules.sfp_open_passive_dns_database- """+class TestModuleOpen_passive_dns_database(unittest.TestCase):def test_opts(self):module = sfp_open_passive_dns_database()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_open_passive_dns_database()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuleopen_passive_dns_database(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_open_passive_dns_database()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_open_passive_dns_database()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_openbugbounty.py b/test/unit/modules/test_sfp_openbugbounty.pyindex a74530c9..b546d71f 100644--- a/test/unit/modules/test_sfp_openbugbounty.py+++ b/test/unit/modules/test_sfp_openbugbounty.py@@ -1,28 +1,19 @@-# test_sfp_openbugbounty.pyimport pytestimport unittestfrom modules.sfp_openbugbounty import sfp_openbugbountyfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleopenbugbounty(unittest.TestCase):- """- Test modules.sfp_openbugbounty- """+class TestModuleOpenbugbounty(unittest.TestCase):def test_opts(self):module = sfp_openbugbounty()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_openbugbounty()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuleopenbugbounty(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_openbugbounty()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_openbugbounty()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_opencorporates.py b/test/unit/modules/test_sfp_opencorporates.pyindex e6e43f8f..3eba1b16 100644--- a/test/unit/modules/test_sfp_opencorporates.py+++ b/test/unit/modules/test_sfp_opencorporates.py@@ -1,28 +1,19 @@-# test_sfp_opencorporates.pyimport pytestimport unittestfrom modules.sfp_opencorporates import sfp_opencorporatesfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleopencorporates(unittest.TestCase):- """- Test modules.sfp_opencorporates- """+class TestModuleOpencorporates(unittest.TestCase):def test_opts(self):module = sfp_opencorporates()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_opencorporates()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuleopencorporates(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_opencorporates()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_opencorporates()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_opendns.py b/test/unit/modules/test_sfp_opendns.pyindex 7ab01867..d92251cd 100644--- a/test/unit/modules/test_sfp_opendns.py+++ b/test/unit/modules/test_sfp_opendns.py@@ -1,28 +1,19 @@-# test_sfp_opendns.pyimport pytestimport unittestfrom modules.sfp_opendns import sfp_opendnsfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleopendns(unittest.TestCase):- """- Test modules.sfp_opendns- """+class TestModuleOpendns(unittest.TestCase):def test_opts(self):module = sfp_opendns()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_opendns()module.setup(sf, dict())@@ -33,77 +24,3 @@ class TestModuleopendns(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_opendns()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent_event_data_safe_internet_name_not_blocked_should_not_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_opendns()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- raise Exception(f"Raised event {event.eventType}: {event.data}")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_opendns)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'INTERNET_NAME'- event_data = 'opendns.com'- event_module = 'example module'- source_event = evt-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)- result = module.handleEvent(evt)-- self.assertIsNone(result)-- def test_handleEvent_event_data_adult_internet_name_blocked_should_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_opendns()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- expected = 'BLACKLISTED_INTERNET_NAME'- if str(event.eventType) != expected:- raise Exception(f"{event.eventType} != {expected}")-- expected = 'OpenDNS - Adult [pornhub.com]'- if str(event.data) != expected:- raise Exception(f"{event.data} != {expected}")-- raise Exception("OK")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_opendns)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'INTERNET_NAME'- event_data = 'pornhub.com'- event_module = 'example module'- source_event = evt-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- with self.assertRaises(Exception) as cm:- module.handleEvent(evt)-- self.assertEqual("OK", str(cm.exception))diff --git a/test/unit/modules/test_sfp_opennic.py b/test/unit/modules/test_sfp_opennic.pyindex a3fc2e83..408cf5fb 100644--- a/test/unit/modules/test_sfp_opennic.py+++ b/test/unit/modules/test_sfp_opennic.py@@ -1,28 +1,19 @@-# test_sfp_opennic.pyimport pytestimport unittestfrom modules.sfp_opennic import sfp_opennicfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleOpenNic(unittest.TestCase):- """- Test modules.sfp_opennic- """def test_opts(self):module = sfp_opennic()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_opennic()module.setup(sf, dict())@@ -33,40 +24,3 @@ class TestModuleOpenNic(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_opennic()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent_event_data_internet_name_with_opennic_tld_should_return_ip_address_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_opennic()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- expected = 'IP_ADDRESS'- if str(event.eventType) != expected:- raise Exception(f"{event.eventType} != {expected}")-- raise Exception("OK")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_opennic)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'INTERNET_NAME'- event_data = 'opennic.glue'- event_module = 'example module'- source_event = evt- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- with self.assertRaises(Exception) as cm:- module.handleEvent(evt)-- self.assertEqual("OK", str(cm.exception))diff --git a/test/unit/modules/test_sfp_openphish.py b/test/unit/modules/test_sfp_openphish.pyindex cb6136cf..e80466b5 100644--- a/test/unit/modules/test_sfp_openphish.py+++ b/test/unit/modules/test_sfp_openphish.py@@ -1,28 +1,19 @@-# test_sfp_openphish.pyimport pytestimport unittestfrom modules.sfp_openphish import sfp_openphishfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleopenphish(unittest.TestCase):- """- Test modules.sfp_openphish- """+class TestModuleOpenphish(unittest.TestCase):def test_opts(self):module = sfp_openphish()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_openphish()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuleopenphish(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_openphish()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_openphish()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_openstreetmap.py b/test/unit/modules/test_sfp_openstreetmap.pyindex 7fe5d514..49c26cfa 100644--- a/test/unit/modules/test_sfp_openstreetmap.py+++ b/test/unit/modules/test_sfp_openstreetmap.py@@ -1,28 +1,19 @@-# test_sfp_openstreetmap.pyimport pytestimport unittestfrom modules.sfp_openstreetmap import sfp_openstreetmapfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleopenstreetmap(unittest.TestCase):- """- Test modules.sfp_openstreetmap- """def test_opts(self):module = sfp_openstreetmap()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_openstreetmap()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuleopenstreetmap(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_openstreetmap()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_openstreetmap()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_pageinfo.py b/test/unit/modules/test_sfp_pageinfo.pyindex 49245d40..b05b0674 100644--- a/test/unit/modules/test_sfp_pageinfo.py+++ b/test/unit/modules/test_sfp_pageinfo.py@@ -1,28 +1,19 @@-# test_sfp_pageinfo.pyimport pytestimport unittestfrom modules.sfp_pageinfo import sfp_pageinfofrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModulePageInfo(unittest.TestCase):- """- Test modules.sfp_pageinfo- """def test_opts(self):module = sfp_pageinfo()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_pageinfo()module.setup(sf, dict())@@ -33,27 +24,3 @@ class TestModulePageInfo(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_pageinfo()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_pageinfo()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_pastebin.py b/test/unit/modules/test_sfp_pastebin.pyindex 8a506a24..65a351f1 100644--- a/test/unit/modules/test_sfp_pastebin.py+++ b/test/unit/modules/test_sfp_pastebin.py@@ -1,4 +1,3 @@-# test_sfp_pastebin.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulepastebin(unittest.TestCase):- """- Test modules.sfp_pastebin- """+class TestModulePastebin(unittest.TestCase):def test_opts(self):module = sfp_pastebin()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_pastebin()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulepastebin(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_pastebin()diff --git a/test/unit/modules/test_sfp_pgp.py b/test/unit/modules/test_sfp_pgp.pyindex 4cfcddf9..3debc8f0 100644--- a/test/unit/modules/test_sfp_pgp.py+++ b/test/unit/modules/test_sfp_pgp.py@@ -1,28 +1,19 @@-# test_sfp_pgp.pyimport pytestimport unittestfrom modules.sfp_pgp import sfp_pgpfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulepgp(unittest.TestCase):- """- Test modules.sfp_pgp- """+class TestModulePgp(unittest.TestCase):def test_opts(self):module = sfp_pgp()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_pgp()module.setup(sf, dict())@@ -33,27 +24,3 @@ class TestModulepgp(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_pgp()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_pgp()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_phishstats.py b/test/unit/modules/test_sfp_phishstats.pyindex 91c94243..9d878e23 100644--- a/test/unit/modules/test_sfp_phishstats.py+++ b/test/unit/modules/test_sfp_phishstats.py@@ -1,28 +1,19 @@-# test_sfp_phishstats.pyimport pytestimport unittestfrom modules.sfp_phishstats import sfp_phishstatsfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulephishstats(unittest.TestCase):- """- Test modules.sfp_phishstats- """+class TestModulePhishstats(unittest.TestCase):def test_opts(self):module = sfp_phishstats()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_phishstats()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulephishstats(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_phishstats()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_phishstats()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_phishtank.py b/test/unit/modules/test_sfp_phishtank.pyindex 9fdb8e42..f6c12a5f 100644--- a/test/unit/modules/test_sfp_phishtank.py+++ b/test/unit/modules/test_sfp_phishtank.py@@ -1,28 +1,19 @@-# test_sfp_phishtank.pyimport pytestimport unittestfrom modules.sfp_phishtank import sfp_phishtankfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulephishtank(unittest.TestCase):- """- Test modules.sfp_phishtank- """+class TestModulePhishtank(unittest.TestCase):def test_opts(self):module = sfp_phishtank()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_phishtank()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulephishtank(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_phishtank()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_phishtank()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_phone.py b/test/unit/modules/test_sfp_phone.pyindex e7face75..17178765 100644--- a/test/unit/modules/test_sfp_phone.py+++ b/test/unit/modules/test_sfp_phone.py@@ -1,4 +1,3 @@-# test_sfp_phone.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModulePhone(unittest.TestCase):- """- Test modules.sfp_phone- """def test_opts(self):module = sfp_phone()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_phone()module.setup(sf, dict())diff --git a/test/unit/modules/test_sfp_portscan_tcp.py b/test/unit/modules/test_sfp_portscan_tcp.pyindex a3ca0078..e8538c43 100644--- a/test/unit/modules/test_sfp_portscan_tcp.py+++ b/test/unit/modules/test_sfp_portscan_tcp.py@@ -1,28 +1,19 @@-# test_sfp_portscan_tcp.pyimport pytestimport unittestfrom modules.sfp_portscan_tcp import sfp_portscan_tcpfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleportscan_tcp(unittest.TestCase):- """- Test modules.sfp_portscan_tcp- """+class TestModulePortscanTcp(unittest.TestCase):def test_opts(self):module = sfp_portscan_tcp()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_portscan_tcp()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuleportscan_tcp(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_portscan_tcp()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_portscan_tcp()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_projectdiscovery.py b/test/unit/modules/test_sfp_projectdiscovery.pyindex 73257ef3..7c2e4c9a 100644--- a/test/unit/modules/test_sfp_projectdiscovery.py+++ b/test/unit/modules/test_sfp_projectdiscovery.py@@ -1,6 +1,6 @@-# test_sfp_projectdiscovery.pyimport pytestimport unittest+from modules.sfp_projectdiscovery import sfp_projectdiscoveryfrom sflib import SpiderFootfrom spiderfoot import SpiderFootEvent, SpiderFootTarget@@ -8,9 +8,6 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleProjectdiscovery(unittest.TestCase):- """- Test modules.sfp_projectdiscovery- """def test_opts(self):module = sfp_projectdiscovery()@@ -18,7 +15,6 @@ class TestModuleProjectdiscovery(unittest.TestCase):def test_setup(self):sf = SpiderFoot(self.default_options)-module = sfp_projectdiscovery()module.setup(sf, dict())diff --git a/test/unit/modules/test_sfp_psbdmp.py b/test/unit/modules/test_sfp_psbdmp.pyindex 6b89f9e0..ea5efcca 100644--- a/test/unit/modules/test_sfp_psbdmp.py+++ b/test/unit/modules/test_sfp_psbdmp.py@@ -1,28 +1,19 @@-# test_sfp_psbdmp.pyimport pytestimport unittestfrom modules.sfp_psbdmp import sfp_psbdmpfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulepsbdmp(unittest.TestCase):- """- Test modules.sfp_psbdmp- """+class TestModulePsbdmp(unittest.TestCase):def test_opts(self):module = sfp_psbdmp()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_psbdmp()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulepsbdmp(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_psbdmp()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_psbdmp()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_pulsedive.py b/test/unit/modules/test_sfp_pulsedive.pyindex b28cb0b0..bb7bb042 100644--- a/test/unit/modules/test_sfp_pulsedive.py+++ b/test/unit/modules/test_sfp_pulsedive.py@@ -1,4 +1,3 @@-# test_sfp_pulsedive.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulepulsedive(unittest.TestCase):- """- Test modules.sfp_pulsedive- """+class TestModulePulsedive(unittest.TestCase):def test_opts(self):module = sfp_pulsedive()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_pulsedive()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulepulsedive(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_pulsedive()diff --git a/test/unit/modules/test_sfp_punkspider.py b/test/unit/modules/test_sfp_punkspider.pyindex c5b9417a..ad36a5ce 100644--- a/test/unit/modules/test_sfp_punkspider.py+++ b/test/unit/modules/test_sfp_punkspider.py@@ -1,28 +1,19 @@-# test_sfp_punkspider.pyimport pytestimport unittestfrom modules.sfp_punkspider import sfp_punkspiderfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulepunkspider(unittest.TestCase):- """- Test modules.sfp_punkspider- """+class TestModulePunkspider(unittest.TestCase):def test_opts(self):module = sfp_punkspider()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_punkspider()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulepunkspider(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_punkspider()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_punkspider()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_quad9.py b/test/unit/modules/test_sfp_quad9.pyindex 579db784..5e0b8201 100644--- a/test/unit/modules/test_sfp_quad9.py+++ b/test/unit/modules/test_sfp_quad9.py@@ -1,28 +1,19 @@-# test_sfp_quad9.pyimport pytestimport unittestfrom modules.sfp_quad9 import sfp_quad9from sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulequad9(unittest.TestCase):- """- Test modules.sfp_quad9- """+class TestModuleQuad9(unittest.TestCase):def test_opts(self):module = sfp_quad9()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_quad9()module.setup(sf, dict())@@ -33,35 +24,3 @@ class TestModulequad9(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_quad9()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent_event_data_safe_internet_name_not_blocked_should_not_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_quad9()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- raise Exception(f"Raised event {event.eventType}: {event.data}")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_quad9)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'INTERNET_NAME'- event_data = 'quad9.net'- event_module = 'example module'- source_event = evt-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_recondev.py b/test/unit/modules/test_sfp_recondev.pyindex 3d36e270..4a3bfd92 100644--- a/test/unit/modules/test_sfp_recondev.py+++ b/test/unit/modules/test_sfp_recondev.py@@ -1,4 +1,3 @@-# test_sfp_recondev.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulerecondev(unittest.TestCase):- """- Test modules.sfp_recondev- """+class TestModuleRecondev(unittest.TestCase):def test_opts(self):module = sfp_recondev()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_recondev()module.setup(sf, dict())@@ -59,9 +51,6 @@ class TestModulerecondev(unittest.TestCase):self.assertTrue(module.errorState)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_recondev()diff --git a/test/unit/modules/test_sfp_reversewhois.py b/test/unit/modules/test_sfp_reversewhois.pyindex 31c62eed..f578c688 100644--- a/test/unit/modules/test_sfp_reversewhois.py+++ b/test/unit/modules/test_sfp_reversewhois.py@@ -1,28 +1,19 @@-# test_sfp_reversewhois.pyimport pytestimport unittestfrom modules.sfp_reversewhois import sfp_reversewhoisfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulereversewhois(unittest.TestCase):- """- Test modules.sfp_reversewhois- """+class TestModuleReversewhois(unittest.TestCase):def test_opts(self):module = sfp_reversewhois()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_reversewhois()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulereversewhois(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_reversewhois()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_reversewhois()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'DOMAIN_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_ripe.py b/test/unit/modules/test_sfp_ripe.pyindex 34a7ee84..3aa2245f 100644--- a/test/unit/modules/test_sfp_ripe.py+++ b/test/unit/modules/test_sfp_ripe.py@@ -1,28 +1,19 @@-# test_sfp_ripe.pyimport pytestimport unittestfrom modules.sfp_ripe import sfp_ripefrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleripe(unittest.TestCase):- """- Test modules.sfp_ripe- """+class TestModuleRipe(unittest.TestCase):def test_opts(self):module = sfp_ripe()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_ripe()module.setup(sf, dict())@@ -33,27 +24,3 @@ class TestModuleripe(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_ripe()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_ripe()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_riskiq.py b/test/unit/modules/test_sfp_riskiq.pyindex 0a53b54d..45804d4a 100644--- a/test/unit/modules/test_sfp_riskiq.py+++ b/test/unit/modules/test_sfp_riskiq.py@@ -1,4 +1,3 @@-# test_sfp_riskiq.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleriskiq(unittest.TestCase):- """- Test modules.sfp_riskiq- """+class TestModuleRiskiq(unittest.TestCase):def test_opts(self):module = sfp_riskiq()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_riskiq()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleriskiq(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_riskiq()diff --git a/test/unit/modules/test_sfp_robtex.py b/test/unit/modules/test_sfp_robtex.pyindex 379f1ffa..f4cb5a45 100644--- a/test/unit/modules/test_sfp_robtex.py+++ b/test/unit/modules/test_sfp_robtex.py@@ -1,28 +1,19 @@-# test_sfp_robtex.pyimport pytestimport unittestfrom modules.sfp_robtex import sfp_robtexfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulerobtex(unittest.TestCase):- """- Test modules.sfp_robtex- """+class TestModuleRobtex(unittest.TestCase):def test_opts(self):module = sfp_robtex()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_robtex()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulerobtex(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_robtex()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_robtex()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_s3bucket.py b/test/unit/modules/test_sfp_s3bucket.pyindex d3905813..1a67e7d7 100644--- a/test/unit/modules/test_sfp_s3bucket.py+++ b/test/unit/modules/test_sfp_s3bucket.py@@ -1,28 +1,19 @@-# test_sfp_s3bucket.pyimport pytestimport unittestfrom modules.sfp_s3bucket import sfp_s3bucketfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModules3bucket(unittest.TestCase):- """- Test modules.sfp_s3bucket- """+class TestModuleS3bucket(unittest.TestCase):def test_opts(self):module = sfp_s3bucket()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_s3bucket()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModules3bucket(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_s3bucket()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_s3bucket()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_scylla.py b/test/unit/modules/test_sfp_scylla.pyindex 46bec6b6..566fa570 100644--- a/test/unit/modules/test_sfp_scylla.py+++ b/test/unit/modules/test_sfp_scylla.py@@ -1,28 +1,19 @@-# test_sfp_scylla.pyimport pytestimport unittestfrom modules.sfp_scylla import sfp_scyllafrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulescylla(unittest.TestCase):- """- Test modules.sfp_scylla- """+class TestModuleScylla(unittest.TestCase):def test_opts(self):module = sfp_scylla()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_scylla()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulescylla(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_scylla()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_scylla()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_searchcode.py b/test/unit/modules/test_sfp_searchcode.pyindex f706fd9a..a1248d78 100644--- a/test/unit/modules/test_sfp_searchcode.py+++ b/test/unit/modules/test_sfp_searchcode.py@@ -1,28 +1,19 @@-# test_sfp_searchcode.pyimport pytestimport unittestfrom modules.sfp_searchcode import sfp_searchcodefrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleCodesearch(unittest.TestCase):- """- Test modules.sfp_searchcode- """def test_opts(self):module = sfp_searchcode()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_searchcode()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuleCodesearch(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_searchcode()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_searchcode()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'DOMAIN_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_securitytrails.py b/test/unit/modules/test_sfp_securitytrails.pyindex 5c9c6034..dc972bd1 100644--- a/test/unit/modules/test_sfp_securitytrails.py+++ b/test/unit/modules/test_sfp_securitytrails.py@@ -1,4 +1,3 @@-# test_sfp_securitytrails.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulesecuritytrails(unittest.TestCase):- """- Test modules.sfp_securitytrails- """+class TestModuleSecuritytrails(unittest.TestCase):def test_opts(self):module = sfp_securitytrails()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_securitytrails()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulesecuritytrails(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_securitytrails()diff --git a/test/unit/modules/test_sfp_seon.py b/test/unit/modules/test_sfp_seon.pyindex 71c89596..16981075 100644--- a/test/unit/modules/test_sfp_seon.py+++ b/test/unit/modules/test_sfp_seon.py@@ -1,4 +1,3 @@-# test_sfp_seon.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleseon(unittest.TestCase):- """- Test modules.sfp_seon- """+class TestModuleSeon(unittest.TestCase):def test_opts(self):module = sfp_seon()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_seon()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleseon(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_seon()diff --git a/test/unit/modules/test_sfp_shodan.py b/test/unit/modules/test_sfp_shodan.pyindex 68f60906..99b4f9c1 100644--- a/test/unit/modules/test_sfp_shodan.py+++ b/test/unit/modules/test_sfp_shodan.py@@ -1,4 +1,3 @@-# test_sfp_shodan.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleshodan(unittest.TestCase):- """- Test modules.sfp_shodan- """+class TestModuleShodan(unittest.TestCase):def test_opts(self):module = sfp_shodan()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_shodan()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleshodan(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_shodan()diff --git a/test/unit/modules/test_sfp_similar.py b/test/unit/modules/test_sfp_similar.pyindex 82bfdb37..e12d4653 100644--- a/test/unit/modules/test_sfp_similar.py+++ b/test/unit/modules/test_sfp_similar.py@@ -1,28 +1,19 @@-# test_sfp_similar.pyimport pytestimport unittestfrom modules.sfp_similar import sfp_similarfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulesimilar(unittest.TestCase):- """- Test modules.sfp_similar- """+class TestModuleSimilar(unittest.TestCase):def test_opts(self):module = sfp_similar()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_similar()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulesimilar(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_similar()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_similar()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_skymem.py b/test/unit/modules/test_sfp_skymem.pyindex 14e0b751..fbe910f7 100644--- a/test/unit/modules/test_sfp_skymem.py+++ b/test/unit/modules/test_sfp_skymem.py@@ -1,28 +1,19 @@-# test_sfp_skymem.pyimport pytestimport unittestfrom modules.sfp_skymem import sfp_skymemfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleskymem(unittest.TestCase):- """- Test modules.sfp_skymem- """+class TestModuleSkymem(unittest.TestCase):def test_opts(self):module = sfp_skymem()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_skymem()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuleskymem(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_skymem()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_skymem()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_slideshare.py b/test/unit/modules/test_sfp_slideshare.pyindex 188754f9..8b6482dc 100644--- a/test/unit/modules/test_sfp_slideshare.py+++ b/test/unit/modules/test_sfp_slideshare.py@@ -1,4 +1,3 @@-# test_sfp_slideshare.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleslideshare(unittest.TestCase):- """- Test modules.sfp_slideshare- """+class TestModuleSlideshare(unittest.TestCase):def test_opts(self):module = sfp_slideshare()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_slideshare()module.setup(sf, dict())@@ -34,26 +26,34 @@ class TestModuleslideshare(unittest.TestCase):module = sfp_slideshare()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):- """- Test handleEvent(self, event)- """+ def test_handleEvent_event_data_social_media_not_slideshare_profile_should_not_return_event(self):sf = SpiderFoot(self.default_options)module = sfp_slideshare()module.setup(sf, dict())- target_value = 'example target value'- target_type = 'IP_ADDRESS'+ target_value = 'spiderfoot.net'+ target_type = 'INTERNET_NAME'target = SpiderFootTarget(target_value, target_type)module.setTarget(target)+ def new_notifyListeners(self, event):+ raise Exception(f"Raised event {event.eventType}: {event.data}")++ module.notifyListeners = new_notifyListeners.__get__(module, sfp_slideshare)+event_type = 'ROOT'event_data = 'example data'event_module = ''source_event = ''evt = SpiderFootEvent(event_type, event_data, event_module, source_event)+ event_type = 'SOCIAL_MEDIA'+ event_data = 'Not SlideShare: example_username'+ event_module = 'example module'+ source_event = evt++ evt = SpiderFootEvent(event_type, event_data, event_module, source_event)result = module.handleEvent(evt)self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_snov.py b/test/unit/modules/test_sfp_snov.pyindex a0f0b9ec..57aaece9 100644--- a/test/unit/modules/test_sfp_snov.py+++ b/test/unit/modules/test_sfp_snov.py@@ -1,4 +1,3 @@-# test_sfp_snov.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulesnov(unittest.TestCase):- """- Test modules.sfp_snov- """+class TestModuleSnov(unittest.TestCase):def test_opts(self):module = sfp_snov()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_snov()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulesnov(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_snov()diff --git a/test/unit/modules/test_sfp_social.py b/test/unit/modules/test_sfp_social.pyindex 81292603..37a40a03 100644--- a/test/unit/modules/test_sfp_social.py+++ b/test/unit/modules/test_sfp_social.py@@ -1,4 +1,3 @@-# test_sfp_social.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulesocial(unittest.TestCase):- """- Test modules.sfp_social- """+class TestModuleSocial(unittest.TestCase):def test_opts(self):module = sfp_social()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_social()module.setup(sf, dict())diff --git a/test/unit/modules/test_sfp_sociallinks.py b/test/unit/modules/test_sfp_sociallinks.pyindex c6c0feb2..32f184d0 100644--- a/test/unit/modules/test_sfp_sociallinks.py+++ b/test/unit/modules/test_sfp_sociallinks.py@@ -1,4 +1,3 @@-# test_sfp_sociallinks.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulesociallinks(unittest.TestCase):- """- Test modules.sfp_sociallinks- """+class TestModuleSociallinks(unittest.TestCase):def test_opts(self):module = sfp_sociallinks()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_sociallinks()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulesociallinks(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_sociallinks()diff --git a/test/unit/modules/test_sfp_socialprofiles.py b/test/unit/modules/test_sfp_socialprofiles.pyindex 22b24a1b..45471fe4 100644--- a/test/unit/modules/test_sfp_socialprofiles.py+++ b/test/unit/modules/test_sfp_socialprofiles.py@@ -1,4 +1,3 @@-# test_sfp_socialprofiles.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulesocialprofiles(unittest.TestCase):- """- Test modules.sfp_socialprofiles- """+class TestModuleSocialprofiles(unittest.TestCase):def test_opts(self):module = sfp_socialprofiles()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_socialprofiles()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulesocialprofiles(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_socialprofiles()diff --git a/test/unit/modules/test_sfp_sorbs.py b/test/unit/modules/test_sfp_sorbs.pyindex c64e401b..be0523ef 100644--- a/test/unit/modules/test_sfp_sorbs.py+++ b/test/unit/modules/test_sfp_sorbs.py@@ -1,28 +1,19 @@-# test_sfp_sorbs.pyimport pytestimport unittestfrom modules.sfp_sorbs import sfp_sorbsfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulesorbs(unittest.TestCase):- """- Test modules.sfp_sorbs- """+class TestModuleSorbs(unittest.TestCase):def test_opts(self):module = sfp_sorbs()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_sorbs()module.setup(sf, dict())@@ -33,35 +24,3 @@ class TestModulesorbs(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_sorbs()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent_event_data_safe_ip_address_not_blocked_should_not_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_sorbs()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- raise Exception(f"Raised event {event.eventType}: {event.data}")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_sorbs)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'IP_ADDRESS'- event_data = '1.0.0.1'- event_module = 'example module'- source_event = evt-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_spamcop.py b/test/unit/modules/test_sfp_spamcop.pyindex f25704c9..cb328e27 100644--- a/test/unit/modules/test_sfp_spamcop.py+++ b/test/unit/modules/test_sfp_spamcop.py@@ -1,28 +1,19 @@-# test_sfp_spamcop.pyimport pytestimport unittestfrom modules.sfp_spamcop import sfp_spamcopfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulespamcop(unittest.TestCase):- """- Test modules.sfp_spamcop- """+class TestModuleSpamcop(unittest.TestCase):def test_opts(self):module = sfp_spamcop()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_spamcop()module.setup(sf, dict())@@ -33,35 +24,3 @@ class TestModulespamcop(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_spamcop()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent_event_data_safe_ip_address_not_blocked_should_not_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_spamcop()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- raise Exception(f"Raised event {event.eventType}: {event.data}")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_spamcop)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'IP_ADDRESS'- event_data = '1.0.0.1'- event_module = 'example module'- source_event = evt-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_spamhaus.py b/test/unit/modules/test_sfp_spamhaus.pyindex 40231b94..9d551be9 100644--- a/test/unit/modules/test_sfp_spamhaus.py+++ b/test/unit/modules/test_sfp_spamhaus.py@@ -1,28 +1,19 @@-# test_sfp_spamhaus.pyimport pytestimport unittestfrom modules.sfp_spamhaus import sfp_spamhausfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulespamhaus(unittest.TestCase):- """- Test modules.sfp_spamhaus- """+class TestModuleSpamhaus(unittest.TestCase):def test_opts(self):module = sfp_spamhaus()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_spamhaus()module.setup(sf, dict())@@ -33,35 +24,3 @@ class TestModulespamhaus(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_spamhaus()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent_event_data_safe_ip_address_not_blocked_should_not_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_spamhaus()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- raise Exception(f"Raised event {event.eventType}: {event.data}")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_spamhaus)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'IP_ADDRESS'- event_data = '1.0.0.1'- event_module = 'example module'- source_event = evt-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_spider.py b/test/unit/modules/test_sfp_spider.pyindex 18a7f89d..73d0e580 100644--- a/test/unit/modules/test_sfp_spider.py+++ b/test/unit/modules/test_sfp_spider.py@@ -1,28 +1,19 @@-# test_sfp_spider.pyimport pytestimport unittestfrom modules.sfp_spider import sfp_spiderfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulespider(unittest.TestCase):- """- Test modules.sfp_spider- """+class TestModuleSpider(unittest.TestCase):def test_opts(self):module = sfp_spider()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_spider()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulespider(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_spider()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_spider()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_spur.py b/test/unit/modules/test_sfp_spur.pyindex aa5fff2f..0f6e8271 100644--- a/test/unit/modules/test_sfp_spur.py+++ b/test/unit/modules/test_sfp_spur.py@@ -1,4 +1,3 @@-# test_sfp_spur.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulespur(unittest.TestCase):- """- Test modules.sfp_spur- """+class TestModuleSpur(unittest.TestCase):def test_opts(self):module = sfp_spur()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_spur()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulespur(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_spur()diff --git a/test/unit/modules/test_sfp_spyonweb.py b/test/unit/modules/test_sfp_spyonweb.pyindex 49654787..d46ccde2 100644--- a/test/unit/modules/test_sfp_spyonweb.py+++ b/test/unit/modules/test_sfp_spyonweb.py@@ -1,4 +1,3 @@-# test_sfp_spyonweb.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulespyonweb(unittest.TestCase):- """- Test modules.sfp_spyonweb- """+class TestModuleSpyonweb(unittest.TestCase):def test_opts(self):module = sfp_spyonweb()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_spyonweb()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulespyonweb(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_spyonweb()diff --git a/test/unit/modules/test_sfp_spyse.py b/test/unit/modules/test_sfp_spyse.pyindex a206771c..c2749a3a 100644--- a/test/unit/modules/test_sfp_spyse.py+++ b/test/unit/modules/test_sfp_spyse.py@@ -1,4 +1,3 @@-# test_sfp_spyse.pyimport pytestimport unittest@@ -8,19 +7,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulespyse(unittest.TestCase):- """- Test modules.sfp_spyse- """+class TestModuleSpyse(unittest.TestCase):def test_opts(self):module = sfp_spyse()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)module = sfp_spyse()@@ -59,9 +52,6 @@ class TestModulespyse(unittest.TestCase):self.assertTrue(module.errorState)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_spyse()diff --git a/test/unit/modules/test_sfp_sslcert.py b/test/unit/modules/test_sfp_sslcert.pyindex 516ae074..a2b0e5c5 100644--- a/test/unit/modules/test_sfp_sslcert.py+++ b/test/unit/modules/test_sfp_sslcert.py@@ -1,28 +1,19 @@-# test_sfp_sslcert.pyimport pytestimport unittestfrom modules.sfp_sslcert import sfp_sslcertfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulesslcert(unittest.TestCase):- """- Test modules.sfp_sslcert- """+class TestModuleSslCert(unittest.TestCase):def test_opts(self):module = sfp_sslcert()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_sslcert()module.setup(sf, dict())@@ -33,27 +24,3 @@ class TestModulesslcert(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_sslcert()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_sslcert()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_stackoverflow.py b/test/unit/modules/test_sfp_stackoverflow.pyindex 0595ee2c..abe5d19f 100644--- a/test/unit/modules/test_sfp_stackoverflow.py+++ b/test/unit/modules/test_sfp_stackoverflow.py@@ -1,4 +1,3 @@-# test_sfp_stackoverflow.pyimport pytestimport unittest@@ -8,20 +7,13 @@ from sflib import SpiderFoot@pytest.mark.usefixturesclass TestModuleStackoverflow(unittest.TestCase):- """- Test modules.sfp_stackoverflow- """def test_opts(self):module = sfp_stackoverflow()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_stackoverflow()module.setup(sf, dict())diff --git a/test/unit/modules/test_sfp_stevenblack_hosts.py b/test/unit/modules/test_sfp_stevenblack_hosts.pyindex 2ce5c16b..71285703 100644--- a/test/unit/modules/test_sfp_stevenblack_hosts.py+++ b/test/unit/modules/test_sfp_stevenblack_hosts.py@@ -1,28 +1,19 @@-# test_sfp_stevenblack_hosts.pyimport pytestimport unittestfrom modules.sfp_stevenblack_hosts import sfp_stevenblack_hostsfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleStevenblackHosts(unittest.TestCase):- """- Test modules.sfp_stevenblack_hosts- """def test_opts(self):module = sfp_stevenblack_hosts()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_stevenblack_hosts()module.setup(sf, dict())@@ -33,87 +24,3 @@ class TestModuleStevenblackHosts(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_stevenblack_hosts()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent_event_data_affiliate_internet_name_matching_ad_server_should_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_stevenblack_hosts()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- module.opts['_fetchtimeout'] = 15- module.optdescs['_fetchtimeout'] = ''- module.opts['_useragent'] = ''- module.optdescs['_useragent'] = ''-- def new_notifyListeners(self, event):- expected = 'MALICIOUS_AFFILIATE_INTERNET_NAME'- if str(event.eventType) != expected:- raise Exception(f"{event.eventType} != {expected}")-- expected = 'Steven Black Hosts Blocklist [ads.google.com]\n<SFURL>https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts</SFURL>'- if str(event.data) != expected:- raise Exception(f"{event.data} != {expected}")-- raise Exception("OK")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_stevenblack_hosts)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'AFFILIATE_INTERNET_NAME'- event_data = 'ads.google.com'- event_module = 'example module'- source_event = evt-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- with self.assertRaises(Exception) as cm:- module.handleEvent(evt)-- self.assertEqual("OK", str(cm.exception))-- def test_handleEvent_event_data_affiliate_internet_name_not_matching_ad_server_should_not_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_stevenblack_hosts()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- module.opts['_fetchtimeout'] = 15- module.optdescs['_fetchtimeout'] = ''- module.opts['_useragent'] = ''- module.optdescs['_useragent'] = ''-- def new_notifyListeners(self, event):- raise Exception(f"Raised event {event.eventType}: {event.data}")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_stevenblack_hosts)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'AFFILIATE_INTERNET_NAME'- event_data = 'no.ads.safe.local'- event_module = 'example module'- source_event = evt-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_strangeheaders.py b/test/unit/modules/test_sfp_strangeheaders.pyindex f6b4db97..177c39a8 100644--- a/test/unit/modules/test_sfp_strangeheaders.py+++ b/test/unit/modules/test_sfp_strangeheaders.py@@ -1,4 +1,3 @@-# test_sfp_strangeheaders.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleStrangeHeaders(unittest.TestCase):- """- Test modules.sfp_strangeheaders- """def test_opts(self):module = sfp_strangeheaders()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_strangeheaders()module.setup(sf, dict())diff --git a/test/unit/modules/test_sfp_subdomain_takeover.py b/test/unit/modules/test_sfp_subdomain_takeover.pyindex 17a61007..93dd74f9 100644--- a/test/unit/modules/test_sfp_subdomain_takeover.py+++ b/test/unit/modules/test_sfp_subdomain_takeover.py@@ -1,28 +1,19 @@-# test_sfp_subdomain_takeover.pyimport pytestimport unittestfrom modules.sfp_subdomain_takeover import sfp_subdomain_takeoverfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulesubdomain_takeover(unittest.TestCase):- """- Test modules.sfp_subdomain_takeover- """+class TestModuleSubdomain_takeover(unittest.TestCase):def test_opts(self):module = sfp_subdomain_takeover()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_subdomain_takeover()module.setup(sf, dict())@@ -33,27 +24,3 @@ class TestModulesubdomain_takeover(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_subdomain_takeover()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_subdomain_takeover()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_sublist3r.py b/test/unit/modules/test_sfp_sublist3r.pyindex 288828b0..34953801 100644--- a/test/unit/modules/test_sfp_sublist3r.py+++ b/test/unit/modules/test_sfp_sublist3r.py@@ -1,28 +1,19 @@-# test_sfp_sublist3r.pyimport pytestimport unittestfrom modules.sfp_sublist3r import sfp_sublist3rfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulesublist3r(unittest.TestCase):- """- Test modules.sfp_sublist3r- """+class TestModuleSublist3r(unittest.TestCase):def test_opts(self):module = sfp_sublist3r()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_sublist3r()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulesublist3r(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_sublist3r()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_sublist3r()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_surbl.py b/test/unit/modules/test_sfp_surbl.pyindex 92b1b70a..f1408bc3 100644--- a/test/unit/modules/test_sfp_surbl.py+++ b/test/unit/modules/test_sfp_surbl.py@@ -1,28 +1,19 @@-# test_sfp_surbl.pyimport pytestimport unittestfrom modules.sfp_surbl import sfp_surblfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleSurbl(unittest.TestCase):- """- Test modules.sfp_surbl- """def test_opts(self):module = sfp_surbl()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_surbl()module.setup(sf, dict())@@ -33,35 +24,3 @@ class TestModuleSurbl(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_surbl()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent_event_data_safe_ip_address_not_blocked_should_not_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_surbl()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- raise Exception(f"Raised event {event.eventType}: {event.data}")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_surbl)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'IP_ADDRESS'- event_data = '1.0.0.1'- event_module = 'example module'- source_event = evt-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_talosintel.py b/test/unit/modules/test_sfp_talosintel.pyindex a531cc00..10a888ca 100644--- a/test/unit/modules/test_sfp_talosintel.py+++ b/test/unit/modules/test_sfp_talosintel.py@@ -1,28 +1,19 @@-# test_sfp_talosintel.pyimport pytestimport unittestfrom modules.sfp_talosintel import sfp_talosintelfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuletalosintel(unittest.TestCase):- """- Test modules.sfp_talosintel- """+class TestModuleTalosintel(unittest.TestCase):def test_opts(self):module = sfp_talosintel()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_talosintel()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuletalosintel(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_talosintel()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_talosintel()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_template.py b/test/unit/modules/test_sfp_template.pyindex edf153c7..7b6e04b5 100644--- a/test/unit/modules/test_sfp_template.py+++ b/test/unit/modules/test_sfp_template.py@@ -1,4 +1,3 @@-# test_sfp_template.pyimport pytestimport unittest@@ -7,21 +6,14 @@ from sflib import SpiderFoot@pytest.mark.usefixtures-class TestModuletemplate(unittest.TestCase):- """- Test modules.sfp_template- """+class TestModuleTemplate(unittest.TestCase):def test_opts(self):module = sfp_template()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_template()module.setup(sf, dict())diff --git a/test/unit/modules/test_sfp_textmagic.py b/test/unit/modules/test_sfp_textmagic.pyindex 603e4316..350b82d5 100644--- a/test/unit/modules/test_sfp_textmagic.py+++ b/test/unit/modules/test_sfp_textmagic.py@@ -1,4 +1,3 @@-# test_sfp_textmagic.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuletextmagic(unittest.TestCase):- """- Test modules.sfp_textmagic- """+class TestModuleTextmagic(unittest.TestCase):def test_opts(self):module = sfp_textmagic()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_textmagic()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuletextmagic(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_textmagic()diff --git a/test/unit/modules/test_sfp_threatcrowd.py b/test/unit/modules/test_sfp_threatcrowd.pyindex efd569aa..e29066c9 100644--- a/test/unit/modules/test_sfp_threatcrowd.py+++ b/test/unit/modules/test_sfp_threatcrowd.py@@ -1,28 +1,19 @@-# test_sfp_threatcrowd.pyimport pytestimport unittestfrom modules.sfp_threatcrowd import sfp_threatcrowdfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulethreatcrowd(unittest.TestCase):- """- Test modules.sfp_threatcrowd- """+class TestModuleThreatcrowd(unittest.TestCase):def test_opts(self):module = sfp_threatcrowd()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_threatcrowd()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulethreatcrowd(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_threatcrowd()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_threatcrowd()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_threatfox.py b/test/unit/modules/test_sfp_threatfox.pyindex 805bddf9..a314b5c3 100644--- a/test/unit/modules/test_sfp_threatfox.py+++ b/test/unit/modules/test_sfp_threatfox.py@@ -1,4 +1,3 @@-# test_sfp_threatfox.pyimport pytestimport unittest@@ -8,20 +7,13 @@ from sflib import SpiderFoot@pytest.mark.usefixturesclass TestModuleThreatFox(unittest.TestCase):- """- Test modules.sfp_threatfox- """def test_opts(self):module = sfp_threatfox()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_threatfox()module.setup(sf, dict())diff --git a/test/unit/modules/test_sfp_threatminer.py b/test/unit/modules/test_sfp_threatminer.pyindex bac8a7e1..ffc70552 100644--- a/test/unit/modules/test_sfp_threatminer.py+++ b/test/unit/modules/test_sfp_threatminer.py@@ -1,28 +1,19 @@-# test_sfp_threatminer.pyimport pytestimport unittestfrom modules.sfp_threatminer import sfp_threatminerfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulethreatminer(unittest.TestCase):- """- Test modules.sfp_threatminer- """+class TestModuleThreatminer(unittest.TestCase):def test_opts(self):module = sfp_threatminer()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_threatminer()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulethreatminer(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_threatminer()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_threatminer()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_tldsearch.py b/test/unit/modules/test_sfp_tldsearch.pyindex 21bacda3..73937b10 100644--- a/test/unit/modules/test_sfp_tldsearch.py+++ b/test/unit/modules/test_sfp_tldsearch.py@@ -1,26 +1,18 @@-# test_sfp_tldsearch.pyimport pytestimport unittestfrom modules.sfp_tldsearch import sfp_tldsearchfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuletldsearch(unittest.TestCase):- """- Test modules.sfp_tldsearch- """+class TestModuleTldsearch(unittest.TestCase):def test_opts(self):module = sfp_tldsearch()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)module = sfp_tldsearch()@@ -33,28 +25,3 @@ class TestModuletldsearch(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_tldsearch()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_tldsearch()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_tool_cmseek.py b/test/unit/modules/test_sfp_tool_cmseek.pyindex 8bffd7f6..4ea988ce 100644--- a/test/unit/modules/test_sfp_tool_cmseek.py+++ b/test/unit/modules/test_sfp_tool_cmseek.py@@ -1,4 +1,3 @@-# test_sfp_tool_cmseek.pyimport pytestimport unittest@@ -8,19 +7,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleCmseek(unittest.TestCase):- """- Test modules.sfp_tool_cmseek- """+class TestModuleToolCmseek(unittest.TestCase):def test_opts(self):module = sfp_tool_cmseek()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)module = sfp_tool_cmseek()@@ -35,9 +28,6 @@ class TestModuleCmseek(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_tool_path_configured_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_tool_cmseek()diff --git a/test/unit/modules/test_sfp_tool_dnstwist.py b/test/unit/modules/test_sfp_tool_dnstwist.pyindex b078a057..6db66155 100644--- a/test/unit/modules/test_sfp_tool_dnstwist.py+++ b/test/unit/modules/test_sfp_tool_dnstwist.py@@ -1,4 +1,3 @@-# test_sfp_tool_dnstwist.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuletool_dnstwist(unittest.TestCase):- """- Test modules.sfp_tool_dnstwist- """+class TestModuleToolDnstwist(unittest.TestCase):def test_opts(self):module = sfp_tool_dnstwist()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_tool_dnstwist()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuletool_dnstwist(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_tool_path_configured_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_tool_dnstwist()diff --git a/test/unit/modules/test_sfp_tool_nbtscan.py b/test/unit/modules/test_sfp_tool_nbtscan.pyindex b30d2f1a..3e8f85ee 100644--- a/test/unit/modules/test_sfp_tool_nbtscan.py+++ b/test/unit/modules/test_sfp_tool_nbtscan.py@@ -1,4 +1,3 @@-# test_sfp_tool_nbtscan.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleNbtscan(unittest.TestCase):- """- Test modules.sfp_tool_nbtscan- """+class TestModuleToolNbtscan(unittest.TestCase):def test_opts(self):module = sfp_tool_nbtscan()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_tool_nbtscan()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleNbtscan(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_tool_path_configured_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_tool_nbtscan()diff --git a/test/unit/modules/test_sfp_tool_nmap.py b/test/unit/modules/test_sfp_tool_nmap.pyindex 7d53c0cf..a6fe4f98 100644--- a/test/unit/modules/test_sfp_tool_nmap.py+++ b/test/unit/modules/test_sfp_tool_nmap.py@@ -1,4 +1,3 @@-# test_sfp_tool_nmap.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuletool_nmap(unittest.TestCase):- """- Test modules.sfp_tool_nmap- """+class TestModuleToolNmap(unittest.TestCase):def test_opts(self):module = sfp_tool_nmap()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_tool_nmap()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuletool_nmap(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_tool_path_configured_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_tool_nmap()diff --git a/test/unit/modules/test_sfp_tool_nuclei.py b/test/unit/modules/test_sfp_tool_nuclei.pyindex 1fa47c5a..3d521fe2 100644--- a/test/unit/modules/test_sfp_tool_nuclei.py+++ b/test/unit/modules/test_sfp_tool_nuclei.py@@ -1,4 +1,3 @@-# test_sfp_tool_nuclei.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleNuclei(unittest.TestCase):- """- Test modules.sfp_tool_nuclei- """+class TestModuleToolNuclei(unittest.TestCase):def test_opts(self):module = sfp_tool_nuclei()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_tool_nuclei()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleNuclei(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_tool_path_configured_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_tool_nuclei()diff --git a/test/unit/modules/test_sfp_tool_onesixtyone.py b/test/unit/modules/test_sfp_tool_onesixtyone.pyindex 7fab653a..fde90c1e 100644--- a/test/unit/modules/test_sfp_tool_onesixtyone.py+++ b/test/unit/modules/test_sfp_tool_onesixtyone.py@@ -1,4 +1,3 @@-# test_sfp_tool_onesixtyone.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleOnesixtyone(unittest.TestCase):- """- Test modules.sfp_tool_onesixtyone- """+class TestModuleToolOnesixtyone(unittest.TestCase):def test_opts(self):module = sfp_tool_onesixtyone()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_tool_onesixtyone()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleOnesixtyone(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_tool_path_configured_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_tool_onesixtyone()diff --git a/test/unit/modules/test_sfp_tool_retirejs.py b/test/unit/modules/test_sfp_tool_retirejs.pyindex 044dba5f..e752a594 100644--- a/test/unit/modules/test_sfp_tool_retirejs.py+++ b/test/unit/modules/test_sfp_tool_retirejs.py@@ -1,4 +1,3 @@-# test_sfp_tool_retirejs.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleRetirejs(unittest.TestCase):- """- Test modules.sfp_tool_retirejs- """+class TestModuleToolRetirejs(unittest.TestCase):def test_opts(self):module = sfp_tool_retirejs()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_tool_retirejs()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleRetirejs(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_tool_path_configured_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_tool_retirejs()diff --git a/test/unit/modules/test_sfp_tool_snallygaster.py b/test/unit/modules/test_sfp_tool_snallygaster.pyindex aa5e20f5..0c14d695 100644--- a/test/unit/modules/test_sfp_tool_snallygaster.py+++ b/test/unit/modules/test_sfp_tool_snallygaster.py@@ -1,4 +1,3 @@-# test_sfp_tool_snallygaster.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleSnallygaster(unittest.TestCase):- """- Test modules.sfp_tool_snallygaster- """+class TestModuleToolSnallygaster(unittest.TestCase):def test_opts(self):module = sfp_tool_snallygaster()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_tool_snallygaster()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleSnallygaster(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_tool_path_configured_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_tool_snallygaster()diff --git a/test/unit/modules/test_sfp_tool_testsslsh.py b/test/unit/modules/test_sfp_tool_testsslsh.pyindex eaf4dcef..d1964e77 100644--- a/test/unit/modules/test_sfp_tool_testsslsh.py+++ b/test/unit/modules/test_sfp_tool_testsslsh.py@@ -1,4 +1,3 @@-# test_sfp_tool_testsslsh.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleTestsslsh(unittest.TestCase):- """- Test modules.sfp_tool_testsslsh- """+class TestModuleToolTestsslsh(unittest.TestCase):def test_opts(self):module = sfp_tool_testsslsh()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_tool_testsslsh()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleTestsslsh(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_tool_path_configured_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_tool_testsslsh()diff --git a/test/unit/modules/test_sfp_tool_trufflehog.py b/test/unit/modules/test_sfp_tool_trufflehog.pyindex 60392df4..27d00e32 100644--- a/test/unit/modules/test_sfp_tool_trufflehog.py+++ b/test/unit/modules/test_sfp_tool_trufflehog.py@@ -1,4 +1,3 @@-# test_sfp_tool_trufflehog.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleTrufflehog(unittest.TestCase):- """- Test modules.sfp_tool_trufflehog- """+class TestModuleToolTrufflehog(unittest.TestCase):def test_opts(self):module = sfp_tool_trufflehog()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_tool_trufflehog()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleTrufflehog(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_tool_path_configured_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_tool_trufflehog()diff --git a/test/unit/modules/test_sfp_tool_wafw00f.py b/test/unit/modules/test_sfp_tool_wafw00f.pyindex f5046eb7..6af0fc70 100644--- a/test/unit/modules/test_sfp_tool_wafw00f.py+++ b/test/unit/modules/test_sfp_tool_wafw00f.py@@ -1,4 +1,3 @@-# test_sfp_tool_wafw00f.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleWafw00f(unittest.TestCase):- """- Test modules.sfp_tool_wafw00f- """+class TestModuleToolWafw00f(unittest.TestCase):def test_opts(self):module = sfp_tool_wafw00f()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_tool_wafw00f()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleWafw00f(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_tool_path_configured_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_tool_wafw00f()diff --git a/test/unit/modules/test_sfp_tool_wappalyzer.py b/test/unit/modules/test_sfp_tool_wappalyzer.pyindex 32d5a6d9..f0a63619 100644--- a/test/unit/modules/test_sfp_tool_wappalyzer.py+++ b/test/unit/modules/test_sfp_tool_wappalyzer.py@@ -1,4 +1,3 @@-# test_sfp_tool_wappalyzer.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleWappalyzer(unittest.TestCase):- """- Test modules.sfp_tool_wappalyzer- """def test_opts(self):module = sfp_tool_wappalyzer()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_tool_wappalyzer()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleWappalyzer(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_tool_path_configured_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_tool_wappalyzer()diff --git a/test/unit/modules/test_sfp_tool_whatweb.py b/test/unit/modules/test_sfp_tool_whatweb.pyindex 1a3d1203..13a1beda 100644--- a/test/unit/modules/test_sfp_tool_whatweb.py+++ b/test/unit/modules/test_sfp_tool_whatweb.py@@ -1,4 +1,3 @@-# test_sfp_tool_whatweb.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleWhatweb(unittest.TestCase):- """- Test modules.sfp_tool_whatweb- """+class TestModuleToolWhatweb(unittest.TestCase):def test_opts(self):module = sfp_tool_whatweb()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_tool_whatweb()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleWhatweb(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_tool_path_configured_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_tool_whatweb()diff --git a/test/unit/modules/test_sfp_torch.py b/test/unit/modules/test_sfp_torch.pyindex 53752c69..5d90efe4 100644--- a/test/unit/modules/test_sfp_torch.py+++ b/test/unit/modules/test_sfp_torch.py@@ -1,28 +1,19 @@-# test_sfp_torch.pyimport pytestimport unittestfrom modules.sfp_torch import sfp_torchfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuletorch(unittest.TestCase):- """- Test modules.sfp_torch- """+class TestModuleTorch(unittest.TestCase):def test_opts(self):module = sfp_torch()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_torch()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuletorch(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_torch()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_torch()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_torexits.py b/test/unit/modules/test_sfp_torexits.pyindex 32d469ab..04e6709c 100644--- a/test/unit/modules/test_sfp_torexits.py+++ b/test/unit/modules/test_sfp_torexits.py@@ -1,28 +1,19 @@-# test_sfp_torexits.pyimport pytestimport unittestfrom modules.sfp_torexits import sfp_torexitsfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuletorexits(unittest.TestCase):- """- Test modules.sfp_torexits- """+class TestModuleTorexits(unittest.TestCase):def test_opts(self):module = sfp_torexits()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_torexits()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuletorexits(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_torexits()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_torexits()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_trashpanda.py b/test/unit/modules/test_sfp_trashpanda.pyindex 763e8c96..d677c648 100644--- a/test/unit/modules/test_sfp_trashpanda.py+++ b/test/unit/modules/test_sfp_trashpanda.py@@ -1,4 +1,3 @@-# test_sfp_trashpanda.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuletrashpanda(unittest.TestCase):- """- Test modules.sfp_trashpanda- """+class TestModuleTrashpanda(unittest.TestCase):def test_opts(self):module = sfp_trashpanda()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_trashpanda()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuletrashpanda(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_trashpanda()diff --git a/test/unit/modules/test_sfp_trumail.py b/test/unit/modules/test_sfp_trumail.pyindex d09ea86f..a6c43435 100644--- a/test/unit/modules/test_sfp_trumail.py+++ b/test/unit/modules/test_sfp_trumail.py@@ -1,28 +1,19 @@-# test_sfp_trumail.pyimport pytestimport unittestfrom modules.sfp_trumail import sfp_trumailfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuletrumail(unittest.TestCase):- """- Test modules.sfp_trumail- """+class TestModuleTrumail(unittest.TestCase):def test_opts(self):module = sfp_trumail()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_trumail()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuletrumail(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_trumail()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_trumail()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'EMAILADDR'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_twilio.py b/test/unit/modules/test_sfp_twilio.pyindex b8f94e43..58096fe5 100644--- a/test/unit/modules/test_sfp_twilio.py+++ b/test/unit/modules/test_sfp_twilio.py@@ -1,4 +1,3 @@-# test_sfp_twilio.pyimport pytestimport unittest@@ -9,18 +8,12 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuletwilio(unittest.TestCase):- """- Test modules.sfp_twilio- """def test_opts(self):module = sfp_twilio()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)module = sfp_twilio()@@ -35,9 +28,6 @@ class TestModuletwilio(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_twilio()@@ -57,3 +47,4 @@ class TestModuletwilio(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_twitter.py b/test/unit/modules/test_sfp_twitter.pyindex 9bfabae9..cccac1ee 100644--- a/test/unit/modules/test_sfp_twitter.py+++ b/test/unit/modules/test_sfp_twitter.py@@ -1,4 +1,3 @@-# test_sfp_twitter.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuletwitter(unittest.TestCase):- """- Test modules.sfp_twitter- """+class TestModuleTwitter(unittest.TestCase):def test_opts(self):module = sfp_twitter()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_twitter()module.setup(sf, dict())diff --git a/test/unit/modules/test_sfp_uceprotect.py b/test/unit/modules/test_sfp_uceprotect.pyindex 2d9d2717..aa9a3422 100644--- a/test/unit/modules/test_sfp_uceprotect.py+++ b/test/unit/modules/test_sfp_uceprotect.py@@ -1,28 +1,19 @@-# test_sfp_uceprotect.pyimport pytestimport unittestfrom modules.sfp_uceprotect import sfp_uceprotectfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleuceprotect(unittest.TestCase):- """- Test modules.sfp_uceprotect- """+class TestModuleUceprotect(unittest.TestCase):def test_opts(self):module = sfp_uceprotect()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_uceprotect()module.setup(sf, dict())@@ -33,35 +24,3 @@ class TestModuleuceprotect(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_uceprotect()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent_event_data_safe_ip_address_not_blocked_should_not_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_uceprotect()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- raise Exception(f"Raised event {event.eventType}: {event.data}")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_uceprotect)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'IP_ADDRESS'- event_data = '1.0.0.1'- event_module = 'example module'- source_event = evt-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_urlscan.py b/test/unit/modules/test_sfp_urlscan.pyindex e7b88e18..73472ecc 100644--- a/test/unit/modules/test_sfp_urlscan.py+++ b/test/unit/modules/test_sfp_urlscan.py@@ -1,28 +1,19 @@-# test_sfp_urlscan.pyimport pytestimport unittestfrom modules.sfp_urlscan import sfp_urlscanfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleurlscan(unittest.TestCase):- """- Test modules.sfp_urlscan- """+class TestModuleUrlscan(unittest.TestCase):def test_opts(self):module = sfp_urlscan()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_urlscan()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModuleurlscan(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_urlscan()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_urlscan()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_venmo.py b/test/unit/modules/test_sfp_venmo.pyindex 8ad113ec..0c09d9bc 100644--- a/test/unit/modules/test_sfp_venmo.py+++ b/test/unit/modules/test_sfp_venmo.py@@ -1,28 +1,19 @@-# test_sfp_venmo.pyimport pytestimport unittestfrom modules.sfp_venmo import sfp_venmofrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulevenmo(unittest.TestCase):- """- Test modules.sfp_venmo- """+class TestModuleVenmo(unittest.TestCase):def test_opts(self):module = sfp_venmo()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_venmo()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulevenmo(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_venmo()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_venmo()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_viewdns.py b/test/unit/modules/test_sfp_viewdns.pyindex 4fdab58f..807fb568 100644--- a/test/unit/modules/test_sfp_viewdns.py+++ b/test/unit/modules/test_sfp_viewdns.py@@ -1,4 +1,3 @@-# test_sfp_viewdns.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleviewdns(unittest.TestCase):- """- Test modules.sfp_viewdns- """+class TestModulViewdns(unittest.TestCase):def test_opts(self):module = sfp_viewdns()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_viewdns()module.setup(sf, dict())@@ -35,11 +27,7 @@ class TestModuleviewdns(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)-module = sfp_viewdns()module.setup(sf, dict())diff --git a/test/unit/modules/test_sfp_virustotal.py b/test/unit/modules/test_sfp_virustotal.pyindex 9e246d17..6db1ebc2 100644--- a/test/unit/modules/test_sfp_virustotal.py+++ b/test/unit/modules/test_sfp_virustotal.py@@ -1,4 +1,3 @@-# test_sfp_virustotal.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulevirustotal(unittest.TestCase):- """- Test modules.sfp_virustotal- """+class TestModuleVirustotal(unittest.TestCase):def test_opts(self):module = sfp_virustotal()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_virustotal()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulevirustotal(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_virustotal()diff --git a/test/unit/modules/test_sfp_voipbl.py b/test/unit/modules/test_sfp_voipbl.pyindex 0078a6f5..96549b00 100644--- a/test/unit/modules/test_sfp_voipbl.py+++ b/test/unit/modules/test_sfp_voipbl.py@@ -1,28 +1,19 @@-# test_sfp_voipbl.pyimport pytestimport unittestfrom modules.sfp_voipbl import sfp_voipblfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulevoipbl(unittest.TestCase):- """- Test modules.sfp_voipbl- """+class TestModuleVoipbl(unittest.TestCase):def test_opts(self):module = sfp_voipbl()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_voipbl()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulevoipbl(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_voipbl()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_voipbl()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_vxvault.py b/test/unit/modules/test_sfp_vxvault.pyindex 2f8940fc..ab8ae152 100644--- a/test/unit/modules/test_sfp_vxvault.py+++ b/test/unit/modules/test_sfp_vxvault.py@@ -1,28 +1,19 @@-# test_sfp_vxvault.pyimport pytestimport unittestfrom modules.sfp_vxvault import sfp_vxvaultfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulevxvault(unittest.TestCase):- """- Test modules.sfp_vxvault- """+class TestModuleVxvault(unittest.TestCase):def test_opts(self):module = sfp_vxvault()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_vxvault()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulevxvault(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_vxvault()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_vxvault()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_webanalytics.py b/test/unit/modules/test_sfp_webanalytics.pyindex aa526d1f..a42b5880 100644--- a/test/unit/modules/test_sfp_webanalytics.py+++ b/test/unit/modules/test_sfp_webanalytics.py@@ -1,4 +1,3 @@-# test_sfp_webanalytics.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleWebAnalytics(unittest.TestCase):- """- Test modules.sfp_webanalytics- """def test_opts(self):module = sfp_webanalytics()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_webanalytics()module.setup(sf, dict())diff --git a/test/unit/modules/test_sfp_webframework.py b/test/unit/modules/test_sfp_webframework.pyindex 6e45ec36..8d59a67f 100644--- a/test/unit/modules/test_sfp_webframework.py+++ b/test/unit/modules/test_sfp_webframework.py@@ -1,4 +1,3 @@-# test sfp_webframework.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleWebFramework(unittest.TestCase):- """- Test modules.sfp_webframework- """def test_opts(self):module = sfp_webframework()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_webframework()module.setup(sf, dict())diff --git a/test/unit/modules/test_sfp_webserver.py b/test/unit/modules/test_sfp_webserver.pyindex 32a97486..e455b800 100644--- a/test/unit/modules/test_sfp_webserver.py+++ b/test/unit/modules/test_sfp_webserver.py@@ -1,28 +1,19 @@-# test_sfp_webserver.pyimport pytestimport unittestfrom modules.sfp_webserver import sfp_webserverfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleWebserver(unittest.TestCase):- """- Test modules.sfp_webserver- """def test_opts(self):module = sfp_webserver()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_webserver()module.setup(sf, dict())@@ -33,27 +24,3 @@ class TestModuleWebserver(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_webserver()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_webserver()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_whatcms.py b/test/unit/modules/test_sfp_whatcms.pyindex ee351c2b..08d8dd44 100644--- a/test/unit/modules/test_sfp_whatcms.py+++ b/test/unit/modules/test_sfp_whatcms.py@@ -1,4 +1,3 @@-# test_sfp_whatcms.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleWhatCMS(unittest.TestCase):- """- Test modules.sfp_whatcms- """def test_opts(self):module = sfp_whatcms()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_whatcms()module.setup(sf, dict())@@ -59,9 +51,6 @@ class TestModuleWhatCMS(unittest.TestCase):self.assertTrue(module.errorState)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_whatcms()diff --git a/test/unit/modules/test_sfp_whois.py b/test/unit/modules/test_sfp_whois.pyindex acd3dc4b..4a7a0139 100644--- a/test/unit/modules/test_sfp_whois.py+++ b/test/unit/modules/test_sfp_whois.py@@ -1,28 +1,19 @@-# test_sfp_whois.pyimport pytestimport unittestfrom modules.sfp_whois import sfp_whoisfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulewhois(unittest.TestCase):- """- Test modules.sfp_whois- """+class TestModuleWhois(unittest.TestCase):def test_opts(self):module = sfp_whois()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_whois()module.setup(sf, dict())@@ -33,27 +24,3 @@ class TestModulewhois(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_whois()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_whois()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_whoisology.py b/test/unit/modules/test_sfp_whoisology.pyindex 2f5b528d..457d7276 100644--- a/test/unit/modules/test_sfp_whoisology.py+++ b/test/unit/modules/test_sfp_whoisology.py@@ -1,4 +1,3 @@-# test_sfp_whoisology.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulewhoisology(unittest.TestCase):- """- Test modules.sfp_whoisology- """+class TestModuleWhoisology(unittest.TestCase):def test_opts(self):module = sfp_whoisology()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_whoisology()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulewhoisology(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_whoisology()diff --git a/test/unit/modules/test_sfp_whoxy.py b/test/unit/modules/test_sfp_whoxy.pyindex 02f51c4d..62215c5f 100644--- a/test/unit/modules/test_sfp_whoxy.py+++ b/test/unit/modules/test_sfp_whoxy.py@@ -1,4 +1,3 @@-# test_sfp_whoxy.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulewhoxy(unittest.TestCase):- """- Test modules.sfp_whoxy- """+class TestModuleWhoxy(unittest.TestCase):def test_opts(self):module = sfp_whoxy()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_whoxy()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulewhoxy(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_whoxy()diff --git a/test/unit/modules/test_sfp_wigle.py b/test/unit/modules/test_sfp_wigle.pyindex f6ba8267..811ce0e0 100644--- a/test/unit/modules/test_sfp_wigle.py+++ b/test/unit/modules/test_sfp_wigle.py@@ -1,4 +1,3 @@-# test_sfp_wigle.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulewigle(unittest.TestCase):- """- Test modules.sfp_wigle- """+class TestModuleWigle(unittest.TestCase):def test_opts(self):module = sfp_wigle()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_wigle()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModulewigle(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_wigle()diff --git a/test/unit/modules/test_sfp_wikileaks.py b/test/unit/modules/test_sfp_wikileaks.pyindex 50b97bb4..5106bca1 100644--- a/test/unit/modules/test_sfp_wikileaks.py+++ b/test/unit/modules/test_sfp_wikileaks.py@@ -1,28 +1,19 @@-# test_sfp_wikileaks.pyimport pytestimport unittestfrom modules.sfp_wikileaks import sfp_wikileaksfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModulewikileaks(unittest.TestCase):- """- Test modules.sfp_wikileaks- """def test_opts(self):module = sfp_wikileaks()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_wikileaks()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulewikileaks(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_wikileaks()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_wikileaks()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_wikipediaedits.py b/test/unit/modules/test_sfp_wikipediaedits.pyindex ad726dd5..b32bf600 100644--- a/test/unit/modules/test_sfp_wikipediaedits.py+++ b/test/unit/modules/test_sfp_wikipediaedits.py@@ -1,28 +1,19 @@-# test_sfp_wikipediaedits.pyimport pytestimport unittestfrom modules.sfp_wikipediaedits import sfp_wikipediaeditsfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModulewikipediaedits(unittest.TestCase):- """- Test modules.sfp_wikipediaedits- """def test_opts(self):module = sfp_wikipediaedits()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_wikipediaedits()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulewikipediaedits(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_wikipediaedits()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_wikipediaedits()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)diff --git a/test/unit/modules/test_sfp_xforce.py b/test/unit/modules/test_sfp_xforce.pyindex ae309106..045721ee 100644--- a/test/unit/modules/test_sfp_xforce.py+++ b/test/unit/modules/test_sfp_xforce.py@@ -1,4 +1,3 @@-# test_sfp_xforce.pyimport pytestimport unittest@@ -8,21 +7,14 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulexforce(unittest.TestCase):- """- Test modules.sfp_xforce- """+class TestModuleXforce(unittest.TestCase):def test_opts(self):module = sfp_xforce()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_xforce()module.setup(sf, dict())@@ -59,9 +51,6 @@ class TestModulexforce(unittest.TestCase):self.assertTrue(module.errorState)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_xforce()diff --git a/test/unit/modules/test_sfp_yandexdns.py b/test/unit/modules/test_sfp_yandexdns.pyindex 32588aa1..fff3e281 100644--- a/test/unit/modules/test_sfp_yandexdns.py+++ b/test/unit/modules/test_sfp_yandexdns.py@@ -1,28 +1,19 @@-# test_sfp_yandexdns.pyimport pytestimport unittestfrom modules.sfp_yandexdns import sfp_yandexdnsfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModuleyandexdns(unittest.TestCase):- """- Test modules.sfp_yandexdns- """+class TestModuleYandexdns(unittest.TestCase):def test_opts(self):module = sfp_yandexdns()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_yandexdns()module.setup(sf, dict())@@ -33,77 +24,3 @@ class TestModuleyandexdns(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_yandexdns()self.assertIsInstance(module.producedEvents(), list)-- def test_handleEvent_event_data_safe_internet_name_not_blocked_should_not_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_yandexdns()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- raise Exception(f"Raised event {event.eventType}: {event.data}")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_yandexdns)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'INTERNET_NAME'- event_data = 'yandex.com'- event_module = 'example module'- source_event = evt-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)- result = module.handleEvent(evt)-- self.assertIsNone(result)-- def test_handleEvent_event_data_adult_internet_name_blocked_should_return_event(self):- sf = SpiderFoot(self.default_options)-- module = sfp_yandexdns()- module.setup(sf, dict())-- target_value = 'spiderfoot.net'- target_type = 'INTERNET_NAME'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- def new_notifyListeners(self, event):- expected = 'BLACKLISTED_INTERNET_NAME'- if str(event.eventType) != expected:- raise Exception(f"{event.eventType} != {expected}")-- expected = 'Yandex - Adult [pornhub.com]'- if str(event.data) != expected:- raise Exception(f"{event.data} != {expected}")-- raise Exception("OK")-- module.notifyListeners = new_notifyListeners.__get__(module, sfp_yandexdns)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- event_type = 'INTERNET_NAME'- event_data = 'pornhub.com'- event_module = 'example module'- source_event = evt-- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- with self.assertRaises(Exception) as cm:- module.handleEvent(evt)-- self.assertEqual("OK", str(cm.exception))diff --git a/test/unit/modules/test_sfp_zetalytics.py b/test/unit/modules/test_sfp_zetalytics.pyindex 9023d318..6a74b1da 100644--- a/test/unit/modules/test_sfp_zetalytics.py+++ b/test/unit/modules/test_sfp_zetalytics.py@@ -1,4 +1,3 @@-# test_sfp_zetalytics.pyimport pytestimport unittest@@ -9,20 +8,13 @@ from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixturesclass TestModuleZetalytics(unittest.TestCase):- """- Test modules.sfp_zetalytics- """def test_opts(self):module = sfp_zetalytics()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_zetalytics()module.setup(sf, dict())@@ -35,9 +27,6 @@ class TestModuleZetalytics(unittest.TestCase):self.assertIsInstance(module.producedEvents(), list)def test_handleEvent_no_api_key_should_set_errorState(self):- """- Test handleEvent(self, event)- """sf = SpiderFoot(self.default_options)module = sfp_zetalytics()diff --git a/test/unit/modules/test_sfp_zoneh.py b/test/unit/modules/test_sfp_zoneh.pyindex 0cb5a2e5..a1721c02 100644--- a/test/unit/modules/test_sfp_zoneh.py+++ b/test/unit/modules/test_sfp_zoneh.py@@ -1,28 +1,19 @@-# test_sfp_zoneh.pyimport pytestimport unittestfrom modules.sfp_zoneh import sfp_zonehfrom sflib import SpiderFoot-from spiderfoot import SpiderFootEvent, SpiderFootTarget@pytest.mark.usefixtures-class TestModulezoneh(unittest.TestCase):- """- Test modules.sfp_zoneh- """+class TestModuleZoneh(unittest.TestCase):def test_opts(self):module = sfp_zoneh()self.assertEqual(len(module.opts), len(module.optdescs))def test_setup(self):- """- Test setup(self, sfc, userOpts=dict())- """sf = SpiderFoot(self.default_options)-module = sfp_zoneh()module.setup(sf, dict())@@ -33,28 +24,3 @@ class TestModulezoneh(unittest.TestCase):def test_producedEvents_should_return_list(self):module = sfp_zoneh()self.assertIsInstance(module.producedEvents(), list)-- @unittest.skip("todo")- def test_handleEvent(self):- """- Test handleEvent(self, event)- """- sf = SpiderFoot(self.default_options)-- module = sfp_zoneh()- module.setup(sf, dict())-- target_value = 'example target value'- target_type = 'IP_ADDRESS'- target = SpiderFootTarget(target_value, target_type)- module.setTarget(target)-- event_type = 'ROOT'- event_data = 'example data'- event_module = ''- source_event = ''- evt = SpiderFootEvent(event_type, event_data, event_module, source_event)-- result = module.handleEvent(evt)-- self.assertIsNone(result)