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:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user