mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
[py3] Made csrf context processor return Unicode
This commit is contained in:
parent
5e958b958b
commit
d774ad752d
3 changed files with 12 additions and 8 deletions
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue