summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-05-25 07:31:03 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-05-25 07:31:03 +0000
commit545173ed4ed8a34b83cfbe852bdbd6da5ba27ce0 (patch)
treeaa593849e816d6bb2c76f2aca5f2ab48f356d215 /tests
parent7b51097847f5ec549f24be603d89d748b40c0fc9 (diff)
downloaddjango-545173ed4ed8a34b83cfbe852bdbd6da5ba27ce0.tar.gz
unicode: Added a check to ensure that iri_to_uri() remains idempotent.
git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5339 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
-rw-r--r--tests/regressiontests/text/tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/regressiontests/text/tests.py b/tests/regressiontests/text/tests.py
index d0e0294cae..0fd22b58b0 100644
--- a/tests/regressiontests/text/tests.py
+++ b/tests/regressiontests/text/tests.py
@@ -31,4 +31,8 @@ u'Paris+%26+Orl%C3%A9ans'
'/blog/for/J%C3%BCrgen%20M%C3%BCnster/'
>>> iri_to_uri(u'locations/%s' % urlquote_plus(u'Paris & Orl\xe9ans'))
'locations/Paris+%26+Orl%C3%A9ans'
+
+iri_to_uri() is idempotent:
+>>> iri_to_uri(iri_to_uri(u'red%09ros\xe9#red'))
+'red%09ros%C3%A9#red'
"""