mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-11 04:07:39 +03:00
Formatting
This commit is contained in:
parent
26ba11101b
commit
9f98455362
|
@ -954,9 +954,10 @@ 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}))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user