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/httpwrappers | |
parent | df8d8d4292684d6ffa7474f1e201aed486f02b53 (diff) | |
download | django-92053acbb9160862c3e743a99ed8ccff8d4f8fd6.tar.gz |
Fixed E128 flake8 warnings in tests/.
Diffstat (limited to 'tests/httpwrappers')
-rw-r--r-- | tests/httpwrappers/tests.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/httpwrappers/tests.py b/tests/httpwrappers/tests.py index e42d4918eb..59ff3f4a70 100644 --- a/tests/httpwrappers/tests.py +++ b/tests/httpwrappers/tests.py @@ -461,9 +461,11 @@ class HttpResponseSubclassesTests(SimpleTestCase): response = HttpResponseRedirect('/redirected/') self.assertEqual(response.status_code, 302) # Test that standard HttpResponse init args can be used - response = HttpResponseRedirect('/redirected/', + response = HttpResponseRedirect( + '/redirected/', content='The resource has temporarily moved', - content_type='text/html') + content_type='text/html', + ) self.assertContains(response, 'The resource has temporarily moved', status_code=302) # Test that url attribute is right self.assertEqual(response.url, response['Location']) @@ -490,9 +492,7 @@ class HttpResponseSubclassesTests(SimpleTestCase): response = HttpResponseNotAllowed(['GET']) self.assertEqual(response.status_code, 405) # Test that standard HttpResponse init args can be used - response = HttpResponseNotAllowed(['GET'], - content='Only the GET method is allowed', - content_type='text/html') + response = HttpResponseNotAllowed(['GET'], content='Only the GET method is allowed', content_type='text/html') self.assertContains(response, 'Only the GET method is allowed', status_code=405) def test_not_allowed_repr(self): |