From 366710e6368fbb7530ccfae92a2b6faa40ea4bc1 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Tue, 7 Apr 2009 12:06:05 +0000 Subject: 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 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'django') diff --git a/django/test/testcases.py b/django/test/testcases.py index 550baf9137..794bc5039d 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'(?