summaryrefslogtreecommitdiff
path: root/tests/reserved_names
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-04-07 22:04:45 -0400
committerTim Graham <timograham@gmail.com>2016-04-08 10:12:33 -0400
commit92053acbb9160862c3e743a99ed8ccff8d4f8fd6 (patch)
tree50e7fd28a650f0e2352cf94f92e5a66d28a81988 /tests/reserved_names
parentdf8d8d4292684d6ffa7474f1e201aed486f02b53 (diff)
downloaddjango-92053acbb9160862c3e743a99ed8ccff8d4f8fd6.tar.gz
Fixed E128 flake8 warnings in tests/.
Diffstat (limited to 'tests/reserved_names')
-rw-r--r--tests/reserved_names/tests.py24
1 files changed, 16 insertions, 8 deletions
diff --git a/tests/reserved_names/tests.py b/tests/reserved_names/tests.py
index 99f2b4befe..429bb01e2d 100644
--- a/tests/reserved_names/tests.py
+++ b/tests/reserved_names/tests.py
@@ -10,21 +10,29 @@ from .models import Thing
class ReservedNameTests(TestCase):
def generate(self):
day1 = datetime.date(2005, 1, 1)
- Thing.objects.create(when='a', join='b', like='c', drop='d',
- alter='e', having='f', where=day1, has_hyphen='h')
+ Thing.objects.create(
+ when='a', join='b', like='c', drop='d', alter='e', having='f',
+ where=day1, has_hyphen='h',
+ )
day2 = datetime.date(2006, 2, 2)
- Thing.objects.create(when='h', join='i', like='j', drop='k',
- alter='l', having='m', where=day2)
+ Thing.objects.create(
+ when='h', join='i', like='j', drop='k', alter='l', having='m',
+ where=day2,
+ )
def test_simple(self):
day1 = datetime.date(2005, 1, 1)
- t = Thing.objects.create(when='a', join='b', like='c', drop='d',
- alter='e', having='f', where=day1, has_hyphen='h')
+ t = Thing.objects.create(
+ when='a', join='b', like='c', drop='d',
+ alter='e', having='f', where=day1, has_hyphen='h',
+ )
self.assertEqual(t.when, 'a')
day2 = datetime.date(2006, 2, 2)
- u = Thing.objects.create(when='h', join='i', like='j', drop='k',
- alter='l', having='m', where=day2)
+ u = Thing.objects.create(
+ when='h', join='i', like='j', drop='k', alter='l', having='m',
+ where=day2,
+ )
self.assertEqual(u.when, 'h')
def test_order_by(self):