Fixed Python 3.2 compatibility for a test.
This commit is contained in:
parent
293f7a2114
commit
bc7a219b1e
|
@ -810,7 +810,7 @@ class RequestMethodStringDataTests(TestCase):
|
|||
def test_patch(self):
|
||||
"Request a view with string data via request method PATCH"
|
||||
# Regression test for #17797
|
||||
data = u'{"test": "json"}'
|
||||
data = '{"test": "json"}'
|
||||
response = self.client.patch('/test_client_regress/request_methods/', data=data, content_type='application/json')
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertEqual(response.content, b'request method: PATCH')
|
||||
|
|
Loading…
Reference in New Issue