SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Tests: modules: Add tests for unconfigured API keys (#1207)
bcolesa0468b57732d
diff --git a/test/unit/modules/test_sfp_alienvault.py b/test/unit/modules/test_sfp_alienvault.pyindex 3f6cc678..e96311fd 100644--- a/test/unit/modules/test_sfp_alienvault.py+++ b/test/unit/modules/test_sfp_alienvault.py@@ -34,7 +34,7 @@ class TestModulealienvault(unittest.TestCase):module = sfp_alienvault()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -57,3 +57,4 @@ class TestModulealienvault(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_bingsharedip.py b/test/unit/modules/test_sfp_bingsharedip.pyindex 30aec906..5dbac7a2 100644--- a/test/unit/modules/test_sfp_bingsharedip.py+++ b/test/unit/modules/test_sfp_bingsharedip.py@@ -34,7 +34,7 @@ class TestModulebingsharedip(unittest.TestCase):module = sfp_bingsharedip()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -57,3 +57,4 @@ class TestModulebingsharedip(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_bitcoinwhoswho.py b/test/unit/modules/test_sfp_bitcoinwhoswho.pyindex 77667ade..cac46f07 100644--- a/test/unit/modules/test_sfp_bitcoinwhoswho.py+++ b/test/unit/modules/test_sfp_bitcoinwhoswho.py@@ -34,7 +34,7 @@ class TestModuletemplate(unittest.TestCase):module = sfp_bitcoinwhoswho()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -57,3 +57,4 @@ class TestModuletemplate(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_botscout.py b/test/unit/modules/test_sfp_botscout.pyindex 96bc7c33..2267d014 100644--- a/test/unit/modules/test_sfp_botscout.py+++ b/test/unit/modules/test_sfp_botscout.py@@ -34,7 +34,7 @@ class TestModulebotscout(unittest.TestCase):module = sfp_botscout()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -57,3 +57,4 @@ class TestModulebotscout(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_clearbit.py b/test/unit/modules/test_sfp_clearbit.pyindex 69187788..9907a2d6 100644--- a/test/unit/modules/test_sfp_clearbit.py+++ b/test/unit/modules/test_sfp_clearbit.py@@ -34,8 +34,7 @@ class TestModuleclearbit(unittest.TestCase):module = sfp_clearbit()self.assertIsInstance(module.producedEvents(), list)- @unittest.skip("todo")- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -58,3 +57,4 @@ class TestModuleclearbit(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_dehashed.py b/test/unit/modules/test_sfp_dehashed.pyindex ee956eef..01bb49bf 100644--- a/test/unit/modules/test_sfp_dehashed.py+++ b/test/unit/modules/test_sfp_dehashed.py@@ -34,8 +34,7 @@ class TestModuledebounce(unittest.TestCase):module = sfp_dehashed()self.assertIsInstance(module.producedEvents(), list)- @unittest.skip("todo")- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -58,3 +57,4 @@ class TestModuledebounce(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_dnsdb.py b/test/unit/modules/test_sfp_dnsdb.pyindex 14e68fac..4e559867 100644--- a/test/unit/modules/test_sfp_dnsdb.py+++ b/test/unit/modules/test_sfp_dnsdb.py@@ -34,7 +34,7 @@ class TestModulednsdb(unittest.TestCase):module = sfp_dnsdb()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -57,3 +57,4 @@ class TestModulednsdb(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_emailcrawlr.py b/test/unit/modules/test_sfp_emailcrawlr.pyindex aeaa4e17..e35c0ac5 100644--- a/test/unit/modules/test_sfp_emailcrawlr.py+++ b/test/unit/modules/test_sfp_emailcrawlr.py@@ -34,7 +34,7 @@ class TestModuleemailcrawlr(unittest.TestCase):module = sfp_emailcrawlr()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -44,7 +44,7 @@ class TestModuleemailcrawlr(unittest.TestCase):module.setup(sf, dict())target_value = 'example target value'- target_type = 'IP_ADDRESS'+ target_type = 'EMAILADDR'target = SpiderFootTarget(target_value, target_type)module.setTarget(target)@@ -57,3 +57,4 @@ class TestModuleemailcrawlr(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_etherscan.py b/test/unit/modules/test_sfp_etherscan.pyindex e97f494a..42c6265b 100644--- a/test/unit/modules/test_sfp_etherscan.py+++ b/test/unit/modules/test_sfp_etherscan.py@@ -34,8 +34,7 @@ class TestModuleetherscan(unittest.TestCase):module = sfp_etherscan()self.assertIsInstance(module.producedEvents(), list)- @unittest.skip("todo")- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -45,7 +44,7 @@ class TestModuleetherscan(unittest.TestCase):module.setup(sf, dict())target_value = 'example target value'- target_type = 'ETHEREUM_ADDRESS'+ target_type = 'IP_ADDRESS'target = SpiderFootTarget(target_value, target_type)module.setTarget(target)@@ -58,3 +57,4 @@ class TestModuleetherscan(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_fraudguard.py b/test/unit/modules/test_sfp_fraudguard.pyindex 1a3e46ac..0d2c7a24 100644--- a/test/unit/modules/test_sfp_fraudguard.py+++ b/test/unit/modules/test_sfp_fraudguard.py@@ -34,7 +34,7 @@ class TestModulefraudguard(unittest.TestCase):module = sfp_fraudguard()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -57,3 +57,4 @@ class TestModulefraudguard(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_fsecure_riddler.py b/test/unit/modules/test_sfp_fsecure_riddler.pyindex 1245ebdb..f7f131ca 100644--- a/test/unit/modules/test_sfp_fsecure_riddler.py+++ b/test/unit/modules/test_sfp_fsecure_riddler.py@@ -34,7 +34,7 @@ class TestModulefsecure_riddler(unittest.TestCase):module = sfp_fsecure_riddler()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -57,3 +57,4 @@ class TestModulefsecure_riddler(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_googlesafebrowsing.py b/test/unit/modules/test_sfp_googlesafebrowsing.pyindex 71676f3e..018f2d58 100644--- a/test/unit/modules/test_sfp_googlesafebrowsing.py+++ b/test/unit/modules/test_sfp_googlesafebrowsing.py@@ -34,7 +34,7 @@ class TestModulegooglesafebrowsing(unittest.TestCase):module = sfp_googlesafebrowsing()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -57,3 +57,4 @@ class TestModulegooglesafebrowsing(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_grayhatwarfare.py b/test/unit/modules/test_sfp_grayhatwarfare.pyindex 7493cbef..32c37cf3 100644--- a/test/unit/modules/test_sfp_grayhatwarfare.py+++ b/test/unit/modules/test_sfp_grayhatwarfare.py@@ -34,8 +34,7 @@ class TestModuleGrayhatWarfare(unittest.TestCase):module = sfp_grayhatwarfare()self.assertIsInstance(module.producedEvents(), list)- @unittest.skip("todo")- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -45,7 +44,7 @@ class TestModuleGrayhatWarfare(unittest.TestCase):module.setup(sf, dict())target_value = 'example target value'- target_type = 'DOMAIN_NAME'+ target_type = 'INTERNET_NAME'target = SpiderFootTarget(target_value, target_type)module.setTarget(target)@@ -58,3 +57,4 @@ class TestModuleGrayhatWarfare(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_haveibeenpwned.py b/test/unit/modules/test_sfp_haveibeenpwned.pyindex f1693310..227503c6 100644--- a/test/unit/modules/test_sfp_haveibeenpwned.py+++ b/test/unit/modules/test_sfp_haveibeenpwned.py@@ -34,8 +34,7 @@ class TestModulehaveibeenpwned(unittest.TestCase):module = sfp_haveibeenpwned()self.assertIsInstance(module.producedEvents(), list)- @unittest.skip("todo")- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -45,7 +44,7 @@ class TestModulehaveibeenpwned(unittest.TestCase):module.setup(sf, dict())target_value = 'example target value'- target_type = 'IP_ADDRESS'+ target_type = 'EMAILADDR'target = SpiderFootTarget(target_value, target_type)module.setTarget(target)@@ -58,3 +57,4 @@ class TestModulehaveibeenpwned(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_honeypot.py b/test/unit/modules/test_sfp_honeypot.pyindex 2962169f..166b8359 100644--- a/test/unit/modules/test_sfp_honeypot.py+++ b/test/unit/modules/test_sfp_honeypot.py@@ -34,7 +34,7 @@ class TestModulehoneypot(unittest.TestCase):module = sfp_honeypot()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -57,3 +57,4 @@ class TestModulehoneypot(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_iknowwhatyoudownload.py b/test/unit/modules/test_sfp_iknowwhatyoudownload.pyindex a9190c8a..2b8fe467 100644--- a/test/unit/modules/test_sfp_iknowwhatyoudownload.py+++ b/test/unit/modules/test_sfp_iknowwhatyoudownload.py@@ -34,7 +34,7 @@ class TestModuleiknowwhatyoudownload(unittest.TestCase):module = sfp_iknowwhatyoudownload()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -57,3 +57,4 @@ class TestModuleiknowwhatyoudownload(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_ipapicom.py b/test/unit/modules/test_sfp_ipapicom.pyindex 5a09eda0..37e956a1 100644--- a/test/unit/modules/test_sfp_ipapicom.py+++ b/test/unit/modules/test_sfp_ipapicom.py@@ -34,8 +34,7 @@ class TestModuleipapicom(unittest.TestCase):module = sfp_ipapicom()self.assertIsInstance(module.producedEvents(), list)- @unittest.skip("todo")- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -58,3 +57,4 @@ class TestModuleipapicom(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_ipinfo.py b/test/unit/modules/test_sfp_ipinfo.pyindex 4d06e3b8..2cab8f3c 100644--- a/test/unit/modules/test_sfp_ipinfo.py+++ b/test/unit/modules/test_sfp_ipinfo.py@@ -34,7 +34,7 @@ class TestModuleipinfo(unittest.TestCase):module = sfp_ipinfo()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -57,3 +57,4 @@ class TestModuleipinfo(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 d5c3ad6e..3816fc11 100644--- a/test/unit/modules/test_sfp_metadefender.py+++ b/test/unit/modules/test_sfp_metadefender.py@@ -34,7 +34,7 @@ class TestModulemetadefender(unittest.TestCase):module = sfp_metadefender()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -57,3 +57,4 @@ class TestModulemetadefender(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_networksdb.py b/test/unit/modules/test_sfp_networksdb.pyindex a096e2ba..455ef9e2 100644--- a/test/unit/modules/test_sfp_networksdb.py+++ b/test/unit/modules/test_sfp_networksdb.py@@ -34,7 +34,7 @@ class TestModulenetworksdb(unittest.TestCase):module = sfp_networksdb()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -57,3 +57,4 @@ class TestModulenetworksdb(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_numverify.py b/test/unit/modules/test_sfp_numverify.pyindex 9095d9ac..ecde8c4e 100644--- a/test/unit/modules/test_sfp_numverify.py+++ b/test/unit/modules/test_sfp_numverify.py@@ -34,7 +34,7 @@ class TestModulenumverify(unittest.TestCase):module = sfp_numverify()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -57,3 +57,4 @@ class TestModulenumverify(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_onioncity.py b/test/unit/modules/test_sfp_onioncity.pyindex 25430793..aa1aa186 100644--- a/test/unit/modules/test_sfp_onioncity.py+++ b/test/unit/modules/test_sfp_onioncity.py@@ -34,7 +34,7 @@ class TestModuleonioncity(unittest.TestCase):module = sfp_onioncity()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -57,3 +57,4 @@ class TestModuleonioncity(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_pastebin.py b/test/unit/modules/test_sfp_pastebin.pyindex 29b5e959..8a506a24 100644--- a/test/unit/modules/test_sfp_pastebin.py+++ b/test/unit/modules/test_sfp_pastebin.py@@ -34,7 +34,7 @@ class TestModulepastebin(unittest.TestCase):module = sfp_pastebin()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -57,3 +57,4 @@ class TestModulepastebin(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_projectdiscovery.py b/test/unit/modules/test_sfp_projectdiscovery.pyindex caf85bec..73257ef3 100644--- a/test/unit/modules/test_sfp_projectdiscovery.py+++ b/test/unit/modules/test_sfp_projectdiscovery.py@@ -30,7 +30,7 @@ class TestModuleProjectdiscovery(unittest.TestCase):module = sfp_projectdiscovery()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):sf = SpiderFoot(self.default_options)module = sfp_projectdiscovery()@@ -50,3 +50,4 @@ class TestModuleProjectdiscovery(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_pulsedive.py b/test/unit/modules/test_sfp_pulsedive.pyindex 53186897..b28cb0b0 100644--- a/test/unit/modules/test_sfp_pulsedive.py+++ b/test/unit/modules/test_sfp_pulsedive.py@@ -34,7 +34,7 @@ class TestModulepulsedive(unittest.TestCase):module = sfp_pulsedive()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -57,3 +57,4 @@ class TestModulepulsedive(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_securitytrails.py b/test/unit/modules/test_sfp_securitytrails.pyindex 67bca5b9..5c9c6034 100644--- a/test/unit/modules/test_sfp_securitytrails.py+++ b/test/unit/modules/test_sfp_securitytrails.py@@ -34,7 +34,7 @@ class TestModulesecuritytrails(unittest.TestCase):module = sfp_securitytrails()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -57,3 +57,4 @@ class TestModulesecuritytrails(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_sociallinks.py b/test/unit/modules/test_sfp_sociallinks.pyindex 03437e3e..c6c0feb2 100644--- a/test/unit/modules/test_sfp_sociallinks.py+++ b/test/unit/modules/test_sfp_sociallinks.py@@ -34,8 +34,7 @@ class TestModulesociallinks(unittest.TestCase):module = sfp_sociallinks()self.assertIsInstance(module.producedEvents(), list)- @unittest.skip("todo")- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -58,3 +57,4 @@ class TestModulesociallinks(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_socialprofiles.py b/test/unit/modules/test_sfp_socialprofiles.pyindex 1a03cc7b..22b24a1b 100644--- a/test/unit/modules/test_sfp_socialprofiles.py+++ b/test/unit/modules/test_sfp_socialprofiles.py@@ -34,7 +34,7 @@ class TestModulesocialprofiles(unittest.TestCase):module = sfp_socialprofiles()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -44,7 +44,7 @@ class TestModulesocialprofiles(unittest.TestCase):module.setup(sf, dict())target_value = 'example target value'- target_type = 'IP_ADDRESS'+ target_type = 'HUMAN_NAME'target = SpiderFootTarget(target_value, target_type)module.setTarget(target)@@ -57,3 +57,4 @@ class TestModulesocialprofiles(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_trashpanda.py b/test/unit/modules/test_sfp_trashpanda.pyindex 7866709e..763e8c96 100644--- a/test/unit/modules/test_sfp_trashpanda.py+++ b/test/unit/modules/test_sfp_trashpanda.py@@ -34,7 +34,7 @@ class TestModuletrashpanda(unittest.TestCase):module = sfp_trashpanda()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -57,3 +57,4 @@ class TestModuletrashpanda(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_whoxy.py b/test/unit/modules/test_sfp_whoxy.pyindex fe7f356a..02f51c4d 100644--- a/test/unit/modules/test_sfp_whoxy.py+++ b/test/unit/modules/test_sfp_whoxy.py@@ -34,7 +34,7 @@ class TestModulewhoxy(unittest.TestCase):module = sfp_whoxy()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -57,3 +57,4 @@ class TestModulewhoxy(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)diff --git a/test/unit/modules/test_sfp_zetalytics.py b/test/unit/modules/test_sfp_zetalytics.pyindex 3c32b8f7..9023d318 100644--- a/test/unit/modules/test_sfp_zetalytics.py+++ b/test/unit/modules/test_sfp_zetalytics.py@@ -34,7 +34,7 @@ class TestModuleZetalytics(unittest.TestCase):module = sfp_zetalytics()self.assertIsInstance(module.producedEvents(), list)- def test_handleEvent(self):+ def test_handleEvent_no_api_key_should_set_errorState(self):"""Test handleEvent(self, event)"""@@ -57,3 +57,4 @@ class TestModuleZetalytics(unittest.TestCase):result = module.handleEvent(evt)self.assertIsNone(result)+ self.assertTrue(module.errorState)