mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-29 04:54:00 +03:00
Fix code style
This commit is contained in:
parent
4345894445
commit
66b2c6149e
|
@ -1136,8 +1136,8 @@ class Test5004UniqueChoiceField(TestCase):
|
||||||
assert not serializer.is_valid()
|
assert not serializer.is_valid()
|
||||||
assert serializer.errors == {'name': ['unique choice model with this name already exists.']}
|
assert serializer.errors == {'name': ['unique choice model with this name already exists.']}
|
||||||
|
|
||||||
class TestFieldSource(TestCase):
|
|
||||||
|
|
||||||
|
class TestFieldSource(TestCase):
|
||||||
def test_named_field_source(self):
|
def test_named_field_source(self):
|
||||||
class TestSerializer(serializers.ModelSerializer):
|
class TestSerializer(serializers.ModelSerializer):
|
||||||
|
|
||||||
|
@ -1156,4 +1156,3 @@ class TestFieldSource(TestCase):
|
||||||
""")
|
""")
|
||||||
self.maxDiff = None
|
self.maxDiff = None
|
||||||
self.assertEqual(unicode_repr(TestSerializer()), expected)
|
self.assertEqual(unicode_repr(TestSerializer()), expected)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user