MCPcopy Create free account
hub / github.com/cdgriffith/Box / test_pop_explicit_default_dotted_path

Function test_pop_explicit_default_dotted_path

test/test_box.py:1822–1826  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1820
1821
1822def test_pop_explicit_default_dotted_path():
1823 value = Box({"nested": {}}, default_box=True, box_dots=True)
1824 default = object()
1825 assert value.pop("nested.missing", default) is default
1826 assert value.to_dict() == {"nested": {}}
1827
1828
1829def test_pop_explicit_default_camel_case_key():

Callers

nothing calls this directly

Calls 3

popMethod · 0.95
to_dictMethod · 0.95
BoxClass · 0.90

Tested by

no test coverage detected