mirror of https://github.com/MISP/PyMISP
new: Method `sharing_group_exists`
parent
b963c41716
commit
9e71e859e9
|
@ -2099,6 +2099,10 @@ class TestComprehensive(unittest.TestCase):
|
||||||
r = self.admin_misp_connector.update_sharing_group({"releasability": "Testing updated"}, sharing_group)
|
r = self.admin_misp_connector.update_sharing_group({"releasability": "Testing updated"}, sharing_group)
|
||||||
self.assertEqual(sharing_group.releasability, 'Testing updated')
|
self.assertEqual(sharing_group.releasability, 'Testing updated')
|
||||||
|
|
||||||
|
# Test `sharing_group_exists` method
|
||||||
|
self.assertTrue(self.admin_misp_connector.sharing_group_exists(sharing_group))
|
||||||
|
self.assertTrue(self.admin_misp_connector.sharing_group_exists(sharing_group.id))
|
||||||
|
self.assertTrue(self.admin_misp_connector.sharing_group_exists(sharing_group.uuid))
|
||||||
# add org
|
# add org
|
||||||
r = self.admin_misp_connector.add_org_to_sharing_group(sharing_group,
|
r = self.admin_misp_connector.add_org_to_sharing_group(sharing_group,
|
||||||
self.test_org, extend=True)
|
self.test_org, extend=True)
|
||||||
|
|
Loading…
Reference in New Issue