summaryrefslogtreecommitdiff
path: root/tests/generic_relations
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-10-19 08:31:38 -0400
committerTim Graham <timograham@gmail.com>2013-10-19 08:31:38 -0400
commit96d1d4e29275f4f5900f0725975d2ad0a4d05816 (patch)
tree17b846e3b77f68fbb3b1dc7a2ff413f574c62ce1 /tests/generic_relations
parent5f52590368063fc8284e23be492d83ba751f66bf (diff)
Removed unused local variables in tests.
Diffstat (limited to 'tests/generic_relations')
-rw-r--r--tests/generic_relations/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/generic_relations/tests.py b/tests/generic_relations/tests.py
index 64219e4897..9c3ba1767d 100644
--- a/tests/generic_relations/tests.py
+++ b/tests/generic_relations/tests.py
@@ -19,7 +19,7 @@ class GenericRelationsTests(TestCase):
platypus = Animal.objects.create(
common_name="Platypus", latin_name="Ornithorhynchus anatinus"
)
- eggplant = Vegetable.objects.create(name="Eggplant", is_yucky=True)
+ Vegetable.objects.create(name="Eggplant", is_yucky=True)
bacon = Vegetable.objects.create(name="Bacon", is_yucky=False)
quartz = Mineral.objects.create(name="Quartz", hardness=7)
@@ -46,7 +46,7 @@ class GenericRelationsTests(TestCase):
# Recall that the Mineral class doesn't have an explicit GenericRelation
# defined. That's OK, because you can create TaggedItems explicitly.
tag1 = TaggedItem.objects.create(content_object=quartz, tag="shiny")
- tag2 = TaggedItem.objects.create(content_object=quartz, tag="clearish")
+ TaggedItem.objects.create(content_object=quartz, tag="clearish")
# However, excluding GenericRelations means your lookups have to be a
# bit more explicit.