mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #19585 -- Fixed loading cookie value as a dict
This regression was introduced by the 'unicode_literals' patch.
This commit is contained in:
parent
4e2e8f39d1
commit
f08e739bc2
2 changed files with 8 additions and 1 deletions
|
@ -588,3 +588,7 @@ class CookieTests(unittest.TestCase):
|
|||
c['name']['httponly'] = True
|
||||
self.assertTrue(c['name']['httponly'])
|
||||
|
||||
def test_load_dict(self):
|
||||
c = SimpleCookie()
|
||||
c.load({'name': 'val'})
|
||||
self.assertEqual(c['name'].value, 'val')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue