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

Method test_recursive_tuples

test/test_box.py:131–140  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

129 assert len(bx1.keys()) == 0
130
131 def test_recursive_tuples(self):
132 out = _recursive_tuples(
133 ({"test": "a"}, ({"second": "b"}, {"third": "c"}, ("fourth",))), dict, recreate_tuples=True
134 )
135 assert isinstance(out, tuple)
136 assert isinstance(out[0], dict)
137 assert out[0] == {"test": "a"}
138 assert isinstance(out[1], tuple)
139 assert isinstance(out[1][2], tuple)
140 assert out[1][0] == {"second": "b"}
141
142 def test_box(self):
143 bx = Box(**test_dict)

Callers

nothing calls this directly

Calls 1

_recursive_tuplesFunction · 0.90

Tested by

no test coverage detected