Add tests

pull/2/head
Raphaël Vinot 2016-10-06 13:25:46 +02:00
parent 60a6d331fc
commit 4c0b6e7e8a
1 changed files with 5 additions and 0 deletions

View File

@ -52,6 +52,11 @@ class TestPyTaxonomies(unittest.TestCase):
Taxonomies(manifest_path="./misp-taxonomies/MANIFEST.json")
pytaxonomies.api.HAS_REQUESTS = True
def test_machinetags(self):
tax = list(self.taxonomies.values())[0]
for p in tax.values():
mt = tax.make_machinetag(p)
self.taxonomies.revert_machinetag(mt)
if __name__ == "__main__":
unittest.main()