Add some more tests

pull/2/head
Raphaël Vinot 2016-10-14 18:29:10 +02:00
parent 14cdb9183a
commit d079660dad
1 changed files with 4 additions and 4 deletions

View File

@ -68,10 +68,10 @@ class TestPyTaxonomies(unittest.TestCase):
pytaxonomies.api.HAS_REQUESTS = True
def test_revert_machinetags(self):
tax = list(self.taxonomies.values())[0]
for p in tax.values():
mt = tax.make_machinetag(p)
self.taxonomies.revert_machinetag(mt)
for tax in self.taxonomies.values():
for p in tax.values():
mt = tax.make_machinetag(p)
self.taxonomies.revert_machinetag(mt)
def test_json(self):
for key, t in self.taxonomies.items():