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

Method test_iter

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

Source from the content-addressed store, hash-verified

1151 assert bx.popitem()
1152
1153 def test_iter(self):
1154 bx = Box()
1155 bx.a = 1
1156 bx.c = 2
1157 assert list(bx.__iter__()) == ["a", "c"]
1158
1159 def test_revered(self):
1160 bx = Box()

Callers

nothing calls this directly

Calls 2

__iter__Method · 0.95
BoxClass · 0.90

Tested by

no test coverage detected