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/timezones | |
parent | df8d8d4292684d6ffa7474f1e201aed486f02b53 (diff) | |
download | django-92053acbb9160862c3e743a99ed8ccff8d4f8fd6.tar.gz |
Fixed E128 flake8 warnings in tests/.
Diffstat (limited to 'tests/timezones')
-rw-r--r-- | tests/timezones/tests.py | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/tests/timezones/tests.py b/tests/timezones/tests.py index e803927d36..dce48f6eae 100644 --- a/tests/timezones/tests.py +++ b/tests/timezones/tests.py @@ -692,8 +692,7 @@ class SerializationTests(SimpleTestCase): def assert_yaml_contains_datetime(self, yaml, dt): # Depending on the yaml dumper, '!timestamp' might be absent - six.assertRegex(self, yaml, - r"\n fields: {dt: !(!timestamp)? '%s'}" % re.escape(dt)) + six.assertRegex(self, yaml, r"\n fields: {dt: !(!timestamp)? '%s'}" % re.escape(dt)) def test_naive_datetime(self): dt = datetime.datetime(2011, 9, 1, 13, 20, 30) @@ -1162,18 +1161,24 @@ class NewFormsTests(TestCase): with timezone.override(pytz.timezone('Europe/Paris')): form = EventForm({'dt': '2011-03-27 02:30:00'}) self.assertFalse(form.is_valid()) - self.assertEqual(form.errors['dt'], - ["2011-03-27 02:30:00 couldn't be interpreted in time zone " - "Europe/Paris; it may be ambiguous or it may not exist."]) + self.assertEqual( + form.errors['dt'], [ + "2011-03-27 02:30:00 couldn't be interpreted in time zone " + "Europe/Paris; it may be ambiguous or it may not exist." + ] + ) @requires_pytz def test_form_with_ambiguous_time(self): with timezone.override(pytz.timezone('Europe/Paris')): form = EventForm({'dt': '2011-10-30 02:30:00'}) self.assertFalse(form.is_valid()) - self.assertEqual(form.errors['dt'], - ["2011-10-30 02:30:00 couldn't be interpreted in time zone " - "Europe/Paris; it may be ambiguous or it may not exist."]) + self.assertEqual( + form.errors['dt'], [ + "2011-10-30 02:30:00 couldn't be interpreted in time zone " + "Europe/Paris; it may be ambiguous or it may not exist." + ] + ) @requires_tz_support def test_split_form(self): |