Formatting

This commit is contained in:
Tom Christie 2013-02-22 22:22:29 +00:00
parent 26ba11101b
commit 9f98455362

View File

@ -954,11 +954,12 @@ class SerializerPickleTests(TestCase):
pickle.dumps(InnerPersonSerializer(Person(name="Noah", age=950)).data)
def test_getstate_method_should_not_return_none(self):
'''Regression test for
"""
Regression test for
https://github.com/tomchristie/django-rest-framework/issues/645
'''
d = serializers.DictWithMetadata({1:1})
self.assertEqual(d.__getstate__(), serializers.SortedDict({1:1}))
"""
d = serializers.DictWithMetadata({1: 1})
self.assertEqual(d.__getstate__(), serializers.SortedDict({1: 1}))
class DepthTest(TestCase):