Kaydet (Commit) bc7a219b authored tarafından Julien Phalip's avatar Julien Phalip

Fixed Python 3.2 compatibility for a test.

üst 293f7a21
......@@ -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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment