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

Method test_sub

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

Source from the content-addressed store, hash-verified

1482 assert bx.uno == 2
1483
1484 def test_sub(self):
1485 difference = Box(extended_test_dict) - test_dict
1486 assert difference == {
1487 3: "howdy",
1488 "not": "true",
1489 (3, 4): "test",
1490 "_box_config": True,
1491 "CamelCase": "21",
1492 "321CamelCase": 321,
1493 False: "tree",
1494 "tuples_galore": ({"item": 3}, ({"item": 4}, 5)),
1495 }
1496
1497 def test_sub_with_non_dict(self):
1498 with pytest.raises(BoxError):

Callers

nothing calls this directly

Calls 1

BoxClass · 0.90

Tested by

no test coverage detected