diff options
author | Tim Graham <timograham@gmail.com> | 2013-10-19 08:31:38 -0400 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2013-10-19 08:31:38 -0400 |
commit | 96d1d4e29275f4f5900f0725975d2ad0a4d05816 (patch) | |
tree | 17b846e3b77f68fbb3b1dc7a2ff413f574c62ce1 /tests/get_earliest_or_latest | |
parent | 5f52590368063fc8284e23be492d83ba751f66bf (diff) | |
download | django-96d1d4e29275f4f5900f0725975d2ad0a4d05816.tar.gz |
Removed unused local variables in tests.
Diffstat (limited to 'tests/get_earliest_or_latest')
-rw-r--r-- | tests/get_earliest_or_latest/tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/get_earliest_or_latest/tests.py b/tests/get_earliest_or_latest/tests.py index eeb95c0818..742c70bc41 100644 --- a/tests/get_earliest_or_latest/tests.py +++ b/tests/get_earliest_or_latest/tests.py @@ -27,11 +27,11 @@ class EarliestOrLatestTests(TestCase): headline="Article 2", pub_date=datetime(2005, 7, 27), expire_date=datetime(2005, 7, 28) ) - a3 = Article.objects.create( + Article.objects.create( headline="Article 3", pub_date=datetime(2005, 7, 28), expire_date=datetime(2005, 8, 27) ) - a4 = Article.objects.create( + Article.objects.create( headline="Article 4", pub_date=datetime(2005, 7, 28), expire_date=datetime(2005, 7, 30) ) @@ -72,7 +72,7 @@ class EarliestOrLatestTests(TestCase): headline="Article 1", pub_date=datetime(2005, 7, 26), expire_date=datetime(2005, 9, 1) ) - a2 = Article.objects.create( + Article.objects.create( headline="Article 2", pub_date=datetime(2005, 7, 27), expire_date=datetime(2005, 7, 28) ) @@ -117,7 +117,7 @@ class EarliestOrLatestTests(TestCase): def test_latest_manual(self): # You can still use latest() with a model that doesn't have # "get_latest_by" set -- just pass in the field name manually. - p1 = Person.objects.create(name="Ralph", birthday=datetime(1950, 1, 1)) + Person.objects.create(name="Ralph", birthday=datetime(1950, 1, 1)) p2 = Person.objects.create(name="Stephanie", birthday=datetime(1960, 2, 3)) self.assertRaises(AssertionError, Person.objects.latest) self.assertEqual(Person.objects.latest("birthday"), p2) |