Commit eaa69d18 by idan

Made test python 2.6 compliant and removed gitignore item

parent 39624291
...@@ -3,5 +3,3 @@ django_taggit.egg-info/ ...@@ -3,5 +3,3 @@ django_taggit.egg-info/
dist/ dist/
_build/ _build/
.tox/ .tox/
.idea
...@@ -349,7 +349,7 @@ class TaggableManagerTestCase(BaseTaggingTestCase): ...@@ -349,7 +349,7 @@ class TaggableManagerTestCase(BaseTaggingTestCase):
with self.assertNumQueries(2): with self.assertNumQueries(2):
l = list(self.food_model.objects.prefetch_related('tags').all()) l = list(self.food_model.objects.prefetch_related('tags').all())
with self.assertNumQueries(0): with self.assertNumQueries(0):
foods = {f.name : set(t.name for t in f.tags.all()) for f in l} foods = dict((f.name, set(t.name for t in f.tags.all())) for f in l)
self.assertEqual(foods, { self.assertEqual(foods, {
u'orange': {'2', '4'}, u'orange': {'2', '4'},
u'apple': {'1', '2'} u'apple': {'1', '2'}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment