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:1887–1891  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1885
1886
1887def test_pop_explicit_default_dotted_path():
1888 value = Box({"nested": {}}, default_box=True, box_dots=True)
1889 default = object()
1890 assert value.pop("nested.missing", default) is default
1891 assert value.to_dict() == {"nested": {}}
1892
1893
1894def 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