diff options
author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-05-25 07:31:03 +0000 |
---|---|---|
committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-05-25 07:31:03 +0000 |
commit | 545173ed4ed8a34b83cfbe852bdbd6da5ba27ce0 (patch) | |
tree | aa593849e816d6bb2c76f2aca5f2ab48f356d215 /tests | |
parent | 7b51097847f5ec549f24be603d89d748b40c0fc9 (diff) | |
download | django-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.py | 4 |
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' """ |