summaryrefslogtreecommitdiff
path: root/tests/generic_views/test_dates.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-10-26 12:15:03 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2013-10-26 12:15:03 -0700
commit9d740eb8b15de31f1c5520659df683d90342bb44 (patch)
tree62b6ff49e5a60467828f9b04d46b6ebeac86c333 /tests/generic_views/test_dates.py
parentf2d8027c9aea93750fc4213d9e733c8575e89502 (diff)
Fix all violators of E231
Diffstat (limited to 'tests/generic_views/test_dates.py')
-rw-r--r--tests/generic_views/test_dates.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/generic_views/test_dates.py b/tests/generic_views/test_dates.py
index 5c887eaac1..58ee0dfcbe 100644
--- a/tests/generic_views/test_dates.py
+++ b/tests/generic_views/test_dates.py
@@ -291,7 +291,7 @@ class MonthArchiveViewTests(TestCase):
"Content can exist on any day of the previous month. Refs #14711"
self.pubdate_list = [
datetime.date(2010, month, day)
- for month,day in ((9,1), (10,2), (11,3))
+ for month, day in ((9, 1), (10, 2), (11, 3))
]
for pubdate in self.pubdate_list:
name = str(pubdate)
@@ -299,15 +299,15 @@ class MonthArchiveViewTests(TestCase):
res = self.client.get('/dates/books/2010/nov/allow_empty/')
self.assertEqual(res.status_code, 200)
- self.assertEqual(res.context['previous_month'], datetime.date(2010,10,1))
+ self.assertEqual(res.context['previous_month'], datetime.date(2010, 10, 1))
# The following test demonstrates the bug
res = self.client.get('/dates/books/2010/nov/')
self.assertEqual(res.status_code, 200)
- self.assertEqual(res.context['previous_month'], datetime.date(2010,10,1))
+ self.assertEqual(res.context['previous_month'], datetime.date(2010, 10, 1))
# The bug does not occur here because a Book with pubdate of Sep 1 exists
res = self.client.get('/dates/books/2010/oct/')
self.assertEqual(res.status_code, 200)
- self.assertEqual(res.context['previous_month'], datetime.date(2010,9,1))
+ self.assertEqual(res.context['previous_month'], datetime.date(2010, 9, 1))
def test_datetime_month_view(self):
BookSigning.objects.create(event_date=datetime.datetime(2008, 2, 1, 12, 0))