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

Method test_sub

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

Source from the content-addressed store, hash-verified

1417 assert bx.uno == 2
1418
1419 def test_sub(self):
1420 difference = Box(extended_test_dict) - test_dict
1421 assert difference == {
1422 3: "howdy",
1423 "not": "true",
1424 (3, 4): "test",
1425 "_box_config": True,
1426 "CamelCase": "21",
1427 "321CamelCase": 321,
1428 False: "tree",
1429 "tuples_galore": ({"item": 3}, ({"item": 4}, 5)),
1430 }
1431
1432 def test_sub_with_non_dict(self):
1433 with pytest.raises(BoxError):

Callers

nothing calls this directly

Calls 1

BoxClass · 0.90

Tested by

no test coverage detected