Fixed Python 3.2 compatibility for a test.

This commit is contained in:
Julien Phalip 2013-02-02 20:57:38 -08:00
parent 293f7a2114
commit bc7a219b1e
1 changed files with 1 additions and 1 deletions

View File

@ -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')