MCPcopy
hub / github.com/encode/django-rest-framework / test_no_keys

Method test_no_keys

tests/test_serializer.py:766–769  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

764 s = serializers.Serializer()
765
766 def test_no_keys(self):
767 ret = {'a': 1}
768 self.s.set_value(ret, [], {'b': 2})
769 assert ret == {'a': 1, 'b': 2}
770
771 def test_one_key(self):
772 ret = {'a': 1}

Callers

nothing calls this directly

Calls 1

set_valueMethod · 0.80

Tested by

no test coverage detected