chg: Add test for delete=True in get_event

pull/633/head
Raphaël Vinot 2020-09-29 11:10:39 +02:00
parent 0467a967b4
commit bdd8fe6782
1 changed files with 6 additions and 0 deletions

View File

@ -551,6 +551,12 @@ class TestComprehensive(unittest.TestCase):
first.objects[0].deleted = True
deleted_object = self.user_misp_connector.update_object(first.objects[0], pythonify=True)
self.assertTrue(deleted_object.deleted)
# Get event with deleted entries
first = self.user_misp_connector.get_event(first, deleted=True, pythonify=True)
self.assertTrue(first.attributes[0].deleted)
self.assertTrue(first.objects[0].deleted)
finally:
# Delete event
self.admin_misp_connector.delete_event(first)