From b897dcf19c1b7de8900d04c9f534501975d69567 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Mon, 19 Aug 2019 11:58:37 +0200 Subject: [PATCH] fix: Invalid tests in last commit. --- tests/testlive_comprehensive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testlive_comprehensive.py b/tests/testlive_comprehensive.py index 89a3c93..05bc11c 100644 --- a/tests/testlive_comprehensive.py +++ b/tests/testlive_comprehensive.py @@ -1397,10 +1397,10 @@ class TestComprehensive(unittest.TestCase): attr4.add_tag('tlp:amber___test') response = self.user_misp_connector.add_attribute(first, [attr1, attr2, attr3, attr4]) time.sleep(5) - self.assertEqual(isinstance(response['attributes'], list), response['attributes']) + self.assertTrue(isinstance(response['attributes'], list), response['attributes']) self.assertEqual(response['attributes'][0].value, '1.2.3.5') self.assertEqual(response['attributes'][1].value, '1.2.3.6') - self.assertEqual(isinstance(response['attributes'][1].tags, list), response['attributes'][1].to_json()) + self.assertTrue(isinstance(response['attributes'][1].tags, list), response['attributes'][1].to_json()) self.assertEqual(response['attributes'][1].tags[0].name, 'tlp:amber___test') self.assertEqual(response['errors']['attribute_0']['value'][0], 'A similar attribute already exists for this event.') self.assertEqual(response['errors']['attribute_2']['value'][0], 'A similar attribute already exists for this event.')