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

Method test_recursive_tuples

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

_recursive_tuplesFunction · 0.90

Tested by

no test coverage detected