chg: properly validate update_sharing_group without pythonify

pull/779/head
Raphaël Vinot 2021-08-05 10:50:40 +02:00
parent 64ef9fbcc5
commit ee25f97478
1 changed files with 2 additions and 2 deletions

View File

@ -2089,8 +2089,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))