Handle case where tag count is returned as string (as was the case in APIv1)

This commit is contained in:
sneakypete81 2013-04-20 12:06:35 +01:00
parent 9cbbd1bd47
commit fc234096f2

View file

@ -86,7 +86,7 @@ class TestBase(unittest.TestCase):
self.tags = self.client.tags.list()
if (len(self.tags) != 1 or
self.tags[0].id != self.TEST_TAG or
self.tags[0].count != 3):
str(self.tags[0].count) != "3"):
print "[Regenerating Tags]"
self._delete_all()
self._create_test_photos()