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

Method test_revered

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

Source from the content-addressed store, hash-verified

1222 assert list(bx.__iter__()) == ["a", "c"]
1223
1224 def test_revered(self):
1225 bx = Box()
1226 bx.a = 1
1227 bx.c = 2
1228 assert list(reversed(bx)) == ["c", "a"]
1229
1230 def test_clear(self):
1231 bx = Box()

Callers

nothing calls this directly

Calls 1

BoxClass · 0.90

Tested by

no test coverage detected