From 50ef85f6e234085bef0f2f7c7828e08886d43cbb Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Sat, 12 May 2007 15:31:52 +0000 Subject: [PATCH] unicode: Added another test to make sure we don't screw up bytestrings. git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5205 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/string_lookup/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/regressiontests/string_lookup/models.py b/tests/regressiontests/string_lookup/models.py index 658279a068..8654352480 100644 --- a/tests/regressiontests/string_lookup/models.py +++ b/tests/regressiontests/string_lookup/models.py @@ -76,4 +76,8 @@ __test__ = {'API_TESTS': ur""" >>> fx.save() >>> Foo.objects.get(viking__contains=u'\xf3') + +# We can also do the above query using UTF-8 strings. +>>> Foo.objects.get(viking__contains='\xc3\xb3') + """}