mirror of https://github.com/MISP/PyMISP
fix: Live test failing on list order
parent
63a9acfc57
commit
d557bf0823
|
@ -294,7 +294,12 @@ class TestBasic(unittest.TestCase):
|
|||
self.assertTrue(sd['default_category'] in categories)
|
||||
|
||||
def test_describeTypes_uptodate(self):
|
||||
self.assertEqual(self.live_describe_types, self.misp.get_local_describe_types())
|
||||
local_describe = self.misp.get_local_describe_types()
|
||||
for temp_key in local_describe.keys():
|
||||
if isinstance(local_describe[temp_key], list):
|
||||
self.assertEqual(sorted(self.live_describe_types[temp_key]), sorted(local_describe[temp_key]))
|
||||
else:
|
||||
self.assertEqual(self.live_describe_types[temp_key], local_describe[temp_key])
|
||||
|
||||
def test_live_acl(self):
|
||||
query_acl = self.misp.get_live_query_acl()
|
||||
|
|
Loading…
Reference in New Issue