From 3931829c6e2251f992b24701b893d20720f0384e Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Tue, 7 Apr 2009 12:15:25 +0000 Subject: [PATCH] [1.0.X] Fixed #10183 -- Corrected the handling of unicode in assertContains and assertNotContains. Thanks to trbs for the patch. Merge of r10414 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10415 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/test/testcases.py | 7 ++++-- .../test_client_regress/models.py | 22 +++++++++++++++++++ .../templates/unicode.html | 5 +++++ .../test_client_regress/urls.py | 1 + .../test_client_regress/views.py | 4 ++++ 5 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 tests/regressiontests/test_client_regress/templates/unicode.html diff --git a/django/test/testcases.py b/django/test/testcases.py index dcab078553..95a6d23cee 100644 --- a/django/test/testcases.py +++ b/django/test/testcases.py @@ -12,6 +12,7 @@ from django.http import QueryDict from django.test import _doctest as doctest from django.test.client import Client from django.utils import simplejson +from django.utils.encoding import smart_str normalize_long_ints = lambda s: re.sub(r'(?