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

Method test_revered

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

Source from the content-addressed store, hash-verified

1157 assert list(bx.__iter__()) == ["a", "c"]
1158
1159 def test_revered(self):
1160 bx = Box()
1161 bx.a = 1
1162 bx.c = 2
1163 assert list(reversed(bx)) == ["c", "a"]
1164
1165 def test_clear(self):
1166 bx = Box()

Callers

nothing calls this directly

Calls 1

BoxClass · 0.90

Tested by

no test coverage detected