Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Oct 6, 2016
1 parent 60a6d33 commit 4c0b6e7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ def test_missingDependency(self):
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()

0 comments on commit 4c0b6e7

Please sign in to comment.