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/fixtures_regress | |
parent | df8d8d4292684d6ffa7474f1e201aed486f02b53 (diff) | |
download | django-92053acbb9160862c3e743a99ed8ccff8d4f8fd6.tar.gz |
Fixed E128 flake8 warnings in tests/.
Diffstat (limited to 'tests/fixtures_regress')
-rw-r--r-- | tests/fixtures_regress/tests.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/fixtures_regress/tests.py b/tests/fixtures_regress/tests.py index 3a47d2617f..150ea9577c 100644 --- a/tests/fixtures_regress/tests.py +++ b/tests/fixtures_regress/tests.py @@ -215,8 +215,7 @@ class TestFixtures(TestCase): """ Test that failing serializer import raises the proper error """ - with six.assertRaisesRegex(self, ImportError, - r"No module named.*unexistent"): + with six.assertRaisesRegex(self, ImportError, r"No module named.*unexistent"): management.call_command( 'loaddata', 'bad_fixture1.unkn', @@ -277,8 +276,7 @@ class TestFixtures(TestCase): ) warning = warning_list.pop() self.assertEqual(warning.category, RuntimeWarning) - self.assertEqual(str(warning.message), - "No fixture data found for 'empty'. (File format may be invalid.)") + self.assertEqual(str(warning.message), "No fixture data found for 'empty'. (File format may be invalid.)") def test_error_message(self): """ |