chg: Enforce strict in object testing to ease debugging

pull/362/head
Raphaël Vinot 2019-02-27 23:22:05 -08:00
parent 59f1f0f9eb
commit 0f56a306be
1 changed files with 1 additions and 1 deletions

View File

@ -496,7 +496,7 @@ class TestComprehensive(unittest.TestCase):
self.assertEqual(new_obj['Object']['distribution'], str(Distribution.inherit.value))
self.assertEqual(new_obj['Object']['Attribute'][0]['distribution'], str(Distribution.inherit.value))
# Object - edit
clean_obj = MISPObject(**new_obj['Object'])
clean_obj = MISPObject(strict=True, **new_obj['Object'])
clean_obj.from_dict(**new_obj['Object'])
clean_obj.add_attribute('filename', value='blah.exe')
new_obj = self.user_misp_connector.edit_object(clean_obj)