summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2013-01-11 21:09:33 +0100
committerClaude Paroz <claude@2xlibre.net>2013-01-11 21:09:33 +0100
commitf08e739bc2ba5d3530a806378087227728369464 (patch)
treed667e4ff9d5d1072075a55f788522d4a0d3fc192 /tests
parent4e2e8f39d19d79a59c2696b2c40cb619a54fa745 (diff)
Fixed #19585 -- Fixed loading cookie value as a dict
This regression was introduced by the 'unicode_literals' patch.
Diffstat (limited to 'tests')
-rw-r--r--tests/regressiontests/httpwrappers/tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/regressiontests/httpwrappers/tests.py b/tests/regressiontests/httpwrappers/tests.py
index 67172d963c..c76d8eafe3 100644
--- a/tests/regressiontests/httpwrappers/tests.py
+++ b/tests/regressiontests/httpwrappers/tests.py
@@ -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')