diff options
| author | Tim Graham <timograham@gmail.com> | 2018-07-09 11:44:49 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-09 11:44:49 -0400 |
| commit | 5bea8d256dcf98f6346786f8a4804b84fee5da27 (patch) | |
| tree | ca7d640481b730f6c1b401d8d8ab56bcb2f9b7a0 /tests/test_client | |
| parent | 857f860d5628d9d9a60eb0ab858647211fb8bb01 (diff) | |
| download | django-5bea8d256dcf98f6346786f8a4804b84fee5da27.tar.gz | |
Fixed #29553 -- Made test client set Content-Length header to a string rather than integer.
Diffstat (limited to 'tests/test_client')
| -rw-r--r-- | tests/test_client/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_client/tests.py b/tests/test_client/tests.py index e45a743f22..b39d5f5e09 100644 --- a/tests/test_client/tests.py +++ b/tests/test_client/tests.py @@ -122,7 +122,7 @@ class ClientTest(TestCase): self.assertEqual(response.status_code, 200) self.assertEqual(response.templates[0].name, 'PUT Template') self.assertEqual(response.context['data'], "{'foo': 'bar'}") - self.assertEqual(response.context['Content-Length'], 14) + self.assertEqual(response.context['Content-Length'], '14') def test_trace(self): """TRACE a view""" |
