summaryrefslogtreecommitdiff
path: root/tests/custom_managers
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-09-08 12:20:01 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2013-09-08 12:20:01 -0700
commit9d11522599bb9f9fd6ad22c15c6168a4f2ac9b4e (patch)
tree03b3c757f57ff71d96d295fb7faf57baadedc36c /tests/custom_managers
parentc687bf0620d67e0579302515904ffe169581d036 (diff)
Removed some more unused local vars
Diffstat (limited to 'tests/custom_managers')
-rw-r--r--tests/custom_managers/tests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/custom_managers/tests.py b/tests/custom_managers/tests.py
index b80f4a5084..ff14ad8439 100644
--- a/tests/custom_managers/tests.py
+++ b/tests/custom_managers/tests.py
@@ -8,7 +8,7 @@ from .models import Person, Book, Car, PersonManager, PublishedBookManager
class CustomManagerTests(TestCase):
def test_manager(self):
- p1 = Person.objects.create(first_name="Bugs", last_name="Bunny", fun=True)
+ Person.objects.create(first_name="Bugs", last_name="Bunny", fun=True)
p2 = Person.objects.create(first_name="Droopy", last_name="Dog", fun=False)
# Test a custom `Manager` method.
@@ -63,7 +63,7 @@ class CustomManagerTests(TestCase):
# manager
self.assertIsInstance(p2.books, PublishedBookManager)
- b1 = Book.published_objects.create(
+ Book.published_objects.create(
title="How to program", author="Rodney Dangerfield", is_published=True
)
b2 = Book.published_objects.create(
@@ -85,8 +85,8 @@ class CustomManagerTests(TestCase):
lambda b: b.title
)
- c1 = Car.cars.create(name="Corvette", mileage=21, top_speed=180)
- c2 = Car.cars.create(name="Neon", mileage=31, top_speed=100)
+ Car.cars.create(name="Corvette", mileage=21, top_speed=180)
+ Car.cars.create(name="Neon", mileage=31, top_speed=100)
self.assertQuerysetEqual(
Car.cars.order_by("name"), [