fix: Test suite for exists calls

pull/663/head
Raphaël Vinot 2020-11-17 00:04:18 +01:00
parent da5dbce6fc
commit 4e830a435b
1 changed files with 3 additions and 2 deletions

View File

@ -701,8 +701,9 @@ class TestComprehensive(unittest.TestCase):
self.assertFalse(self.user_misp_connector.object_exists(misp_object))
try:
self.user_misp_connector.add_event(event)
event = self.user_misp_connector.add_event(event, pythonify=True)
misp_object = event.objects[0]
attribute = misp_object.attributes[0]
self.assertTrue(self.user_misp_connector.event_exists(event))
self.assertTrue(self.user_misp_connector.event_exists(event.uuid))
self.assertTrue(self.user_misp_connector.event_exists(event.id))