Update test_expansions.py

pull/554/head
Rambatla Venkat Rao 2022-02-12 11:34:42 +05:30 committed by GitHub
parent 0d63c5e0a2
commit 59a6ca2fb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -303,10 +303,10 @@ class TestExpansions(unittest.TestCase):
if module_name in self.configs:
query['config'] = self.configs[module_name]
response = self.misp_modules_post(query)
self.assertEqual(self.get_values(response), 'noreply@ipqualityscore.com')
self.assertEqual(self.get_values(response)['message'], 'Success.')
else:
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):
module_name = 'macaddress_io'