chg: Debug travis error message

pull/511/head
Raphaël Vinot 2019-12-16 13:50:29 +01:00
parent 637a9668c0
commit 826fc21ace
1 changed files with 5 additions and 1 deletions

View File

@ -1075,7 +1075,11 @@ class TestComprehensive(unittest.TestCase):
file_object = first.get_objects_by_name('file')[0]
file_object.force_misp_objects_path_custom('tests/mispevent_testfiles', 'overwrite_file')
file_object.add_attribute('test_overwrite', 'blah')
obj = self.admin_misp_connector.update_object(file_object, pythonify=True)
obj_json = self.admin_misp_connector.update_object(file_object)
self.assertTrue('Object' in obj_json, obj_json)
self.assertTrue('name' in obj_json['Object'], obj_json)
obj = MISPObject(obj_json['Object']['name'])
obj.from_dict(**obj_json)
self.assertEqual(obj.get_attributes_by_relation('test_overwrite')[0].value, 'blah')
finally:
# Delete event