From 366710e6368fbb7530ccfae92a2b6faa40ea4bc1 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Tue, 7 Apr 2009 12:06:05 +0000 Subject: [PATCH] Fixed #10183 -- Corrected the handling of unicode in assertContains and assertNotContains. Thanks to trbs for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10414 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 | 3 +++ 5 files changed, 36 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 550baf91373..794bc5039d3 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'(?