mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +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:
parent
994714d8cc
commit
50ef85f6e2
@ -76,4 +76,8 @@ __test__ = {'API_TESTS': ur"""
|
|||||||
>>> fx.save()
|
>>> fx.save()
|
||||||
>>> Foo.objects.get(viking__contains=u'\xf3')
|
>>> Foo.objects.get(viking__contains=u'\xf3')
|
||||||
<Foo: Foo Bjorn>
|
<Foo: Foo Bjorn>
|
||||||
|
|
||||||
|
# We can also do the above query using UTF-8 strings.
|
||||||
|
>>> Foo.objects.get(viking__contains='\xc3\xb3')
|
||||||
|
<Foo: Foo Bjorn>
|
||||||
"""}
|
"""}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user