mirror of https://github.com/MISP/misp-modules
fix: [tests] Small fixes on the expansion tests
parent
a357243d31
commit
87db6f04aa
|
@ -221,7 +221,7 @@ class TestExpansions(unittest.TestCase):
|
|||
try:
|
||||
self.assertIn(result, self.get_values(response))
|
||||
except Exception:
|
||||
self.assertTrue(self.get_errors(response).startwith('Something went wrong'))
|
||||
self.assertTrue(self.get_errors(response).startswith('Something went wrong'))
|
||||
else:
|
||||
query = {"module": module_name, "ip-src": "8.8.8.8"}
|
||||
response = self.misp_modules_post(query)
|
||||
|
@ -285,7 +285,7 @@ class TestExpansions(unittest.TestCase):
|
|||
encoded = b64encode(f.read()).decode()
|
||||
query = {"module": "ocr_enrich", "attachment": filename, "data": encoded}
|
||||
response = self.misp_modules_post(query)
|
||||
self.assertEqual(self.get_values(response), 'Threat Sharing')
|
||||
self.assertEqual(self.get_values(response).strip('\n'), 'Threat Sharing')
|
||||
|
||||
def test_ods(self):
|
||||
filename = 'test.ods'
|
||||
|
|
Loading…
Reference in New Issue