1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Use new TestCase methods for equality comparisons

This commit is contained in:
Ian Clelland
2012-09-28 00:20:01 -07:00
committed by Luke Plant
parent 089d9ca1df
commit 8d35fd4c32
7 changed files with 26 additions and 20 deletions

View File

@@ -43,5 +43,5 @@ class TestCookieStorage(TestStorage, TestCase):
storage.init_data()
storage.update_response(response)
unsigned_cookie_data = cookie_signer.unsign(response.cookies[storage.prefix].value)
self.assertEqual(json.loads(unsigned_cookie_data),
self.assertJSONEqual(unsigned_cookie_data,
{"step_files": {}, "step": None, "extra_data": {}, "step_data": {}})