From 0d63c5e0a2a197221ca77d63cf17d5434f2c5ac7 Mon Sep 17 00:00:00 2001 From: Rambatla Venkat Rao <68921481+RamboV@users.noreply.github.com> Date: Sat, 12 Feb 2022 11:14:57 +0530 Subject: [PATCH] Update test_expansions.py --- tests/test_expansions.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/tests/test_expansions.py b/tests/test_expansions.py index 649c05a..db5d160 100644 --- a/tests/test_expansions.py +++ b/tests/test_expansions.py @@ -296,22 +296,14 @@ class TestExpansions(unittest.TestCase): def test_ipqs_fraud_and_risk_scoring(self): module_name = "ipqs_fraud_and_risk_scoring" query = {"module": module_name, - "attribute": {"type": "domain", + "attribute": {"type": "email", "value": "noreply@ipqualityscore.com", "uuid": "ea89a33b-4ab7-4515-9f02-922a0bee333d"}, "config": {}} if module_name in self.configs: query['config'] = self.configs[module_name] response = self.misp_modules_post(query) - try: - self.assertEqual(self.get_object(response), 'IPQS:') - except Exception: - self.assertIn( - self.get_errors(response), - ( - "Invalid or unauthorized key. Please check the API key and try again." - ) - ) + self.assertEqual(self.get_values(response), 'noreply@ipqualityscore.com') else: response = self.misp_modules_post(query) self.assertEqual(self.get_errors(response), 'An API key for IPQualityScore is required.')