mirror of https://github.com/MISP/PyMISP
chg: properly validate update_sharing_group without pythonify
parent
dbc18408c1
commit
a158bcd83f
|
@ -2090,8 +2090,8 @@ class TestComprehensive(unittest.TestCase):
|
|||
# Change releasability
|
||||
r = self.admin_misp_connector.update_sharing_group({"releasability": "Testing updated"}, sharing_group, pythonify=True)
|
||||
self.assertEqual(r.releasability, 'Testing updated')
|
||||
r = self.admin_misp_connector.update_sharing_group({"releasability": "Testing updated"}, sharing_group)
|
||||
self.assertEqual(r['SharingGroup']['releasability'], 'Testing updated')
|
||||
r = self.admin_misp_connector.update_sharing_group({"releasability": "Testing updated - 2"}, sharing_group)
|
||||
self.assertEqual(r['SharingGroup']['releasability'], 'Testing updated - 2')
|
||||
|
||||
# Test `sharing_group_exists` method
|
||||
self.assertTrue(self.admin_misp_connector.sharing_group_exists(sharing_group))
|
||||
|
|
Loading…
Reference in New Issue