From 545173ed4ed8a34b83cfbe852bdbd6da5ba27ce0 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Fri, 25 May 2007 07:31:03 +0000 Subject: [PATCH] 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 --- tests/regressiontests/text/tests.py | 4 ++++ 1 file changed, 4 insertions(+) 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' """