mirror of https://github.com/MISP/misp-modules
Update test_expansions.py
parent
0d63c5e0a2
commit
59a6ca2fb4
|
@ -303,10 +303,10 @@ class TestExpansions(unittest.TestCase):
|
||||||
if module_name in self.configs:
|
if module_name in self.configs:
|
||||||
query['config'] = self.configs[module_name]
|
query['config'] = self.configs[module_name]
|
||||||
response = self.misp_modules_post(query)
|
response = self.misp_modules_post(query)
|
||||||
self.assertEqual(self.get_values(response), 'noreply@ipqualityscore.com')
|
self.assertEqual(self.get_values(response)['message'], 'Success.')
|
||||||
else:
|
else:
|
||||||
response = self.misp_modules_post(query)
|
response = self.misp_modules_post(query)
|
||||||
self.assertEqual(self.get_errors(response), 'An API key for IPQualityScore is required.')
|
self.assertEqual(self.get_errors(response), 'Invalid or unauthorized key. Please check the API key and try again.')
|
||||||
|
|
||||||
def test_macaddess_io(self):
|
def test_macaddess_io(self):
|
||||||
module_name = 'macaddress_io'
|
module_name = 'macaddress_io'
|
||||||
|
|
Loading…
Reference in New Issue