mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-30 05:24:00 +03:00
Formatting
This commit is contained in:
parent
26ba11101b
commit
9f98455362
|
@ -954,11 +954,12 @@ class SerializerPickleTests(TestCase):
|
||||||
pickle.dumps(InnerPersonSerializer(Person(name="Noah", age=950)).data)
|
pickle.dumps(InnerPersonSerializer(Person(name="Noah", age=950)).data)
|
||||||
|
|
||||||
def test_getstate_method_should_not_return_none(self):
|
def test_getstate_method_should_not_return_none(self):
|
||||||
'''Regression test for
|
"""
|
||||||
|
Regression test for
|
||||||
https://github.com/tomchristie/django-rest-framework/issues/645
|
https://github.com/tomchristie/django-rest-framework/issues/645
|
||||||
'''
|
"""
|
||||||
d = serializers.DictWithMetadata({1:1})
|
d = serializers.DictWithMetadata({1: 1})
|
||||||
self.assertEqual(d.__getstate__(), serializers.SortedDict({1:1}))
|
self.assertEqual(d.__getstate__(), serializers.SortedDict({1: 1}))
|
||||||
|
|
||||||
|
|
||||||
class DepthTest(TestCase):
|
class DepthTest(TestCase):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user