Commit 66b2c614 by jhg14

Fix code style

parent 43458944
...@@ -1136,8 +1136,8 @@ class Test5004UniqueChoiceField(TestCase): ...@@ -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): ...@@ -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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment