summaryrefslogtreecommitdiff
path: root/tests/regressiontests/httpwrappers
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2009-03-31 05:14:13 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2009-03-31 05:14:13 +0000
commit9ae873fcd83221a17d41f31f2ac32e37f439ae7b (patch)
tree3290d2f88485ab5f104574c18df798dce603c35f /tests/regressiontests/httpwrappers
parent62353e8fe74b37d60841696846f985e45e8b03bf (diff)
Fixed #10184: QueryDicts with multiple values can now be safely pickled. Thanks, Alex Gaynor.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10240 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/httpwrappers')
-rw-r--r--tests/regressiontests/httpwrappers/tests.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/regressiontests/httpwrappers/tests.py b/tests/regressiontests/httpwrappers/tests.py
index 844b356366..15b872821c 100644
--- a/tests/regressiontests/httpwrappers/tests.py
+++ b/tests/regressiontests/httpwrappers/tests.py
@@ -396,10 +396,18 @@ u'\ufffd'
# Pickling a QueryDict #
########################
>>> import pickle
+>>> q = QueryDict('')
+>>> q1 = pickle.loads(pickle.dumps(q, 2))
+>>> q == q1
+True
>>> q = QueryDict('a=b&c=d')
>>> q1 = pickle.loads(pickle.dumps(q, 2))
>>> q == q1
True
+>>> q = QueryDict('a=b&c=d&a=1')
+>>> q1 = pickle.loads(pickle.dumps(q, 2))
+>>> q == q1
+True
######################################
# HttpResponse with Unicode headers #