1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #29553 -- Made test client set Content-Length header to a string rather than integer.

This commit is contained in:
Tim Graham
2018-07-09 11:44:49 -04:00
committed by GitHub
parent 857f860d56
commit 5bea8d256d
3 changed files with 5 additions and 2 deletions

View File

@@ -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"""