mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #29553 -- Made test client set Content-Length header to a string rather than integer.
This commit is contained in:
parent
857f860d56
commit
5bea8d256d
3 changed files with 5 additions and 2 deletions
|
@ -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"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue