summaryrefslogtreecommitdiff
path: root/tests/basic
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/basic
parentc687bf0620d67e0579302515904ffe169581d036 (diff)
downloaddjango-9d11522599bb9f9fd6ad22c15c6168a4f2ac9b4e.tar.gz
Removed some more unused local vars
Diffstat (limited to 'tests/basic')
-rw-r--r--tests/basic/tests.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/basic/tests.py b/tests/basic/tests.py
index fb3b06a543..0d766dde2b 100644
--- a/tests/basic/tests.py
+++ b/tests/basic/tests.py
@@ -531,11 +531,11 @@ class ModelTest(TestCase):
def test_year_lookup_edge_case(self):
# Edge-case test: A year lookup should retrieve all objects in
# the given year, including Jan. 1 and Dec. 31.
- a11 = Article.objects.create(
+ Article.objects.create(
headline='Article 11',
pub_date=datetime(2008, 1, 1),
)
- a12 = Article.objects.create(
+ Article.objects.create(
headline='Article 12',
pub_date=datetime(2008, 12, 31, 23, 59, 59, 999999),
)
@@ -591,15 +591,15 @@ class ModelTest(TestCase):
def test_extra_method_select_argument_with_dashes_and_values(self):
# The 'select' argument to extra() supports names with dashes in
# them, as long as you use values().
- a10 = Article.objects.create(
+ Article.objects.create(
headline="Article 10",
pub_date=datetime(2005, 7, 31, 12, 30, 45),
)
- a11 = Article.objects.create(
+ Article.objects.create(
headline='Article 11',
pub_date=datetime(2008, 1, 1),
)
- a12 = Article.objects.create(
+ Article.objects.create(
headline='Article 12',
pub_date=datetime(2008, 12, 31, 23, 59, 59, 999999),
)
@@ -615,15 +615,15 @@ class ModelTest(TestCase):
# If you use 'select' with extra() and names containing dashes on a
# query that's *not* a values() query, those extra 'select' values
# will silently be ignored.
- a10 = Article.objects.create(
+ Article.objects.create(
headline="Article 10",
pub_date=datetime(2005, 7, 31, 12, 30, 45),
)
- a11 = Article.objects.create(
+ Article.objects.create(
headline='Article 11',
pub_date=datetime(2008, 1, 1),
)
- a12 = Article.objects.create(
+ Article.objects.create(
headline='Article 12',
pub_date=datetime(2008, 12, 31, 23, 59, 59, 999999),
)
@@ -640,7 +640,7 @@ class ModelTest(TestCase):
"""
notlazy = 'test'
lazy = ugettext_lazy(notlazy)
- reporter = Article.objects.create(headline=lazy, pub_date=datetime.now())
+ Article.objects.create(headline=lazy, pub_date=datetime.now())
article = Article.objects.get()
self.assertEqual(article.headline, notlazy)
# test that assign + save works with Promise objecs