diff options
author | Tim Graham <timograham@gmail.com> | 2016-04-07 22:04:45 -0400 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-04-08 10:12:33 -0400 |
commit | 92053acbb9160862c3e743a99ed8ccff8d4f8fd6 (patch) | |
tree | 50e7fd28a650f0e2352cf94f92e5a66d28a81988 /tests/reserved_names | |
parent | df8d8d4292684d6ffa7474f1e201aed486f02b53 (diff) | |
download | django-92053acbb9160862c3e743a99ed8ccff8d4f8fd6.tar.gz |
Fixed E128 flake8 warnings in tests/.
Diffstat (limited to 'tests/reserved_names')
-rw-r--r-- | tests/reserved_names/tests.py | 24 |
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): |