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

[py3] Made csrf context processor return Unicode

This commit is contained in:
Claude Paroz
2012-08-13 11:34:40 +02:00
parent 5e958b958b
commit d774ad752d
3 changed files with 12 additions and 8 deletions

View File

@@ -216,7 +216,7 @@ class CsrfViewMiddlewareTest(TestCase):
"""
req = self._get_GET_no_csrf_cookie_request()
resp = token_view(req)
self.assertEqual("", resp.content)
self.assertEqual(resp.content, b'')
def test_token_node_empty_csrf_cookie(self):
"""