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

Method test_keep_keys_non_string_key

test/test_coverage_paths.py:120–123  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

118 assert b.to_dict() == {"a": [1, 2]}
119
120 def test_keep_keys_non_string_key(self):
121 b = Box({1: "a", "camelCase": 2}, camel_killer_box=True, camel_killer_box_keep_keys=True)
122 assert b[1] == "a"
123 assert b.camel_case == 2
124
125 def test_operators_with_boxes(self):
126 assert (Box(a=1) + Box(b=2)).to_dict() == {"a": 1, "b": 2}

Callers

nothing calls this directly

Calls 1

BoxClass · 0.90

Tested by

no test coverage detected