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

Method test_pop_items

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

Source from the content-addressed store, hash-verified

882 assert bx.pop("c", True) is not True
883
884 def test_pop_items(self):
885 bx = Box(a=4)
886 assert bx.popitem() == ("a", 4)
887 with pytest.raises(BoxKeyError):
888 assert bx.popitem()
889
890 def test_iter(self):
891 bx = Box()

Callers

nothing calls this directly

Calls 2

popitemMethod · 0.95
BoxClass · 0.90

Tested by

no test coverage detected