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

Method test_reflected_operators_with_box

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

Source from the content-addressed store, hash-verified

131 assert result.to_dict() == {"a": {"y": 2}, "b": 1}
132
133 def test_reflected_operators_with_box(self):
134 assert Box(a=1).__radd__(Box(b=2)).to_dict() == {"b": 2, "a": 1}
135 assert Box(a=1).__ror__(Box(a=2, b=2)).to_dict() == {"a": 1, "b": 2}
136
137 def test_ephemeral_unfrozen_child_of_frozen_box(self):
138 class Other(Box):

Callers

nothing calls this directly

Calls 4

BoxClass · 0.90
to_dictMethod · 0.80
__radd__Method · 0.80
__ror__Method · 0.80

Tested by

no test coverage detected