1
0
mirror of https://github.com/django/django.git synced 2025-07-04 09:49:12 +00:00

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
This commit is contained in:
Malcolm Tredinnick 2007-05-12 15:31:52 +00:00
parent 994714d8cc
commit 50ef85f6e2

View File

@ -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>
"""}