summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2009-03-31 19:34:08 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2009-03-31 19:34:08 +0000
commit606c5a7e7e731166164f17243aec32a498e02422 (patch)
treeebf8ecaa4be90faa4d66f69c8b185f65afc80b48 /tests
parent76fd191bfd6cfc7d88bff232b9df433e4f993d37 (diff)
[1.0.X] Fixed #10184: QueryDicts with multiple values can now be safely pickled. Thanks, Alex Gaynor.
Backport of [10240] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10279 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
-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 #