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

Method test_pop_items

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

Source from the content-addressed store, hash-verified

1144 assert bx.pop("c", True) is not True
1145
1146 def test_pop_items(self):
1147 bx = Box(a=4, b=5)
1148 assert bx.popitem() == ("b", 5)
1149 assert bx.popitem() == ("a", 4)
1150 with pytest.raises(BoxKeyError):
1151 assert bx.popitem()
1152
1153 def test_iter(self):
1154 bx = Box()

Callers

nothing calls this directly

Calls 2

popitemMethod · 0.95
BoxClass · 0.90

Tested by

no test coverage detected