summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-05-12 15:31:52 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-05-12 15:31:52 +0000
commit50ef85f6e234085bef0f2f7c7828e08886d43cbb (patch)
tree17568e827ca7fa3ebfd0ee79be7b678a7ce48bae /tests
parent994714d8cc68701abb5190c1fd9d8c3015744797 (diff)
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
Diffstat (limited to 'tests')
-rw-r--r--tests/regressiontests/string_lookup/models.py4
1 files changed, 4 insertions, 0 deletions
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')
<Foo: Foo Bjorn>
+
+# We can also do the above query using UTF-8 strings.
+>>> Foo.objects.get(viking__contains='\xc3\xb3')
+<Foo: Foo Bjorn>
"""}