fix: test_get_non_exists_event

pull/608/head
Jakub Onderka 2020-07-28 12:26:15 +02:00 committed by GitHub
parent 3fa546f3c9
commit 82aa3c815d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -556,11 +556,11 @@ class TestComprehensive(unittest.TestCase):
self.admin_misp_connector.delete_event(first) self.admin_misp_connector.delete_event(first)
def test_get_non_exists_event(self): def test_get_non_exists_event(self):
with self.assertRaises(MISPServerError): event = self.user_misp_connector.get_event(0) # non exists id
self.user_misp_connector.get_event(0) # non exists id self.assertEqual(event['errors'][0], 404)
with self.assertRaises(MISPServerError): event = self.user_misp_connector.get_event("ab2b6e28-fda5-4282-bf60-22b81de77851") # non exists uuid
self.user_misp_connector.get_event("ab2b6e28-fda5-4282-bf60-22b81de77851") # non exists uuid self.assertEqual(event['errors'][0], 404)
def test_delete_by_uuid(self): def test_delete_by_uuid(self):
try: try: