python 3 fixes
This commit is contained in:
@@ -33,7 +33,7 @@ class JsonResponseTestCase(unittest.TestCase):
|
|||||||
|
|
||||||
def test_string(self):
|
def test_string(self):
|
||||||
resp = JsonResponse("foo")
|
resp = JsonResponse("foo")
|
||||||
self.assertEqual(resp.content, '"foo"')
|
self.assertEqual(resp.content.decode('utf-8'), '"foo"')
|
||||||
self.assertEqual(resp.status_code, 200)
|
self.assertEqual(resp.status_code, 200)
|
||||||
self.assertEqual(resp["content-type"], "application/json")
|
self.assertEqual(resp["content-type"], "application/json")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user