mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-06-29 09:53:15 +03:00
Unicode string fix
This commit is contained in:
parent
260a8125c5
commit
dd51d369c8
|
@ -299,8 +299,8 @@ class SearchFilterTests(TestCase):
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
response.data,
|
response.data,
|
||||||
[
|
[
|
||||||
{u'id': 1, 'title': u'z', 'text': u'abc'},
|
{'id': 1, 'title': 'z', 'text': 'abc'},
|
||||||
{u'id': 2, 'title': u'zz', 'text': u'bcd'}
|
{'id': 2, 'title': 'zz', 'text': 'bcd'}
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -316,7 +316,7 @@ class SearchFilterTests(TestCase):
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
response.data,
|
response.data,
|
||||||
[
|
[
|
||||||
{u'id': 3, 'title': u'zzz', 'text': u'cde'}
|
{'id': 3, 'title': 'zzz', 'text': 'cde'}
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -332,6 +332,6 @@ class SearchFilterTests(TestCase):
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
response.data,
|
response.data,
|
||||||
[
|
[
|
||||||
{u'id': 2, 'title': u'zz', 'text': u'bcd'}
|
{'id': 2, 'title': 'zz', 'text': 'bcd'}
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user