chg: Reorganize some tests

pull/382/head
Raphaël Vinot 2019-03-20 10:44:59 +01:00
parent f53690f406
commit 7a146b684e
1 changed files with 2 additions and 5 deletions

View File

@ -913,14 +913,11 @@ class TestComprehensive(unittest.TestCase):
self.admin_misp_connector.delete_event(first.id)
def test_object_template(self):
template = self.admin_misp_connector.get_object_template('688c46fb-5edb-40a3-8273-1af7923e2215')
self.assertEqual(template['ObjectTemplate']['uuid'], '688c46fb-5edb-40a3-8273-1af7923e2215')
def test_update_modules(self):
# object templates
self.admin_misp_connector.update_object_templates()
r = self.admin_misp_connector.update_object_templates()
self.assertEqual(type(r), list)
template = self.admin_misp_connector.get_object_template('688c46fb-5edb-40a3-8273-1af7923e2215')
self.assertEqual(template['ObjectTemplate']['uuid'], '688c46fb-5edb-40a3-8273-1af7923e2215')
def test_tags(self):
# Get list