mirror of https://github.com/MISP/PyTaxonomies
chg: Improve test online/offline
parent
c2bc770009
commit
5c54a7fdaf
|
@ -1 +1 @@
|
|||
Subproject commit 141bc6602b165bc5f49425ef0e8be762a988e5f5
|
||||
Subproject commit e8f47610049aae63bd4e0589f4cdad53d17ee215
|
|
@ -18,8 +18,11 @@ class TestPyTaxonomies(unittest.TestCase):
|
|||
|
||||
def test_compareOnlineOffilne(self):
|
||||
taxonomies_online = Taxonomies(manifest_path=None)
|
||||
for t_online, t_offline in zip(taxonomies_online.values(), self.taxonomies_offline.values()):
|
||||
self.assertEqual(str(t_online), str(t_offline))
|
||||
self.assertEqual(str(taxonomies_online), str(self.taxonomies_offline))
|
||||
|
||||
|
||||
def test_expanded_machinetags(self):
|
||||
self.taxonomies_offline.all_machinetags(expanded=True)
|
||||
|
||||
|
@ -82,5 +85,6 @@ class TestPyTaxonomies(unittest.TestCase):
|
|||
def test_validate_schema(self):
|
||||
self.taxonomies_offline.validate_with_schema()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
|
Loading…
Reference in New Issue