Commit ccb9c723 by Alex Gaynor

Added another test

parent 54629b2c
...@@ -41,6 +41,9 @@ class AddTagTestCase(BaseTaggingTest): ...@@ -41,6 +41,9 @@ class AddTagTestCase(BaseTaggingTest):
tag = Tag.objects.create(name="delicious") tag = Tag.objects.create(name="delicious")
apple.tags.add(tag) apple.tags.add(tag)
self.assert_tags_equal(apple.tags.all(), ["red", "delicious"]) self.assert_tags_equal(apple.tags.all(), ["red", "delicious"])
apple.delete()
self.assert_tags_equal(Food.tags.all(), ["green"])
class LookupByTagTestCase(BaseTaggingTest): class LookupByTagTestCase(BaseTaggingTest):
......
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