mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 04:20:12 +03:00
Make string python 3 compliant
This commit is contained in:
parent
0779dcb748
commit
4ee9164336
|
@ -288,7 +288,7 @@ class ReverseNestedOneToManyTests(TestCase):
|
||||||
instance = OneToManyTarget.objects.get(pk=1)
|
instance = OneToManyTarget.objects.get(pk=1)
|
||||||
serializer = self.Serializer(instance, data=data)
|
serializer = self.Serializer(instance, data=data)
|
||||||
self.assertFalse(serializer.is_valid())
|
self.assertFalse(serializer.is_valid())
|
||||||
self.assertEqual(serializer.errors, {'sources': [{u'non_field_errors': [u'Expected a list of items.']}]})
|
self.assertEqual(serializer.errors, {'sources': [{'non_field_errors': ['Expected a list of items.']}]})
|
||||||
|
|
||||||
def test_one_to_many_update(self):
|
def test_one_to_many_update(self):
|
||||||
data = {'id': 1, 'name': 'target-1-updated', 'sources': [{'id': 1, 'name': 'source-1-updated'},
|
data = {'id': 1, 'name': 'target-1-updated', 'sources': [{'id': 1, 'name': 'source-1-updated'},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user