diff options
| author | Dražen Odobašić <dodobas@candela-it.com> | 2015-09-11 19:33:12 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-09-12 11:40:50 -0400 |
| commit | b1e33ceceda1e75ff68c7deed8f6659683a195d3 (patch) | |
| tree | e4e446f69194f2dc3c9c7ee3ecf48290ea8d4d31 /django/test/client.py | |
| parent | 84b0a8d2aad042fb573df5055b6153770d0929ac (diff) | |
Fixed #23395 -- Limited line lengths to 119 characters.
Diffstat (limited to 'django/test/client.py')
| -rw-r--r-- | django/test/client.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/django/test/client.py b/django/test/client.py index 8d46ea629a..a1ee223fdb 100644 --- a/django/test/client.py +++ b/django/test/client.py @@ -655,7 +655,10 @@ class Client(RequestFactory): def _parse_json(self, response, **extra): if 'application/json' not in response.get('Content-Type'): - raise ValueError('Content-Type header is "{0}", not "application/json"'.format(response.get('Content-Type'))) + raise ValueError( + 'Content-Type header is "{0}", not "application/json"' + .format(response.get('Content-Type')) + ) return json.loads(response.content.decode(), **extra) def _handle_redirects(self, response, **extra): |
