Commit 5518db1d by Alex Gaynor

little cleanup

parent 010c6995
...@@ -156,8 +156,10 @@ class TaggableManagerTestCase(BaseTaggingTest): ...@@ -156,8 +156,10 @@ class TaggableManagerTestCase(BaseTaggingTest):
spot.tags.add('scary') spot.tags.add('scary')
spike.tags.add('fluffy') spike.tags.add('fluffy')
lookup_kwargs = {'%s__name' % (self.pet_model._meta.object_name.lower()): 'Spot'} lookup_kwargs = {'%s__name' % (self.pet_model._meta.object_name.lower()): 'Spot'}
self.assertEqual([unicode(i.tag) for i in self.taggeditem_model.objects.filter(**lookup_kwargs)], self.assert_tags_equal(
[u'scary']) [i.tag for i in self.taggeditem_model.objects.filter(**lookup_kwargs)],
['scary']
)
class TaggableManagerDirectTestCase(TaggableManagerTestCase): class TaggableManagerDirectTestCase(TaggableManagerTestCase):
......
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