MCPcopy Create free account
hub / github.com/Vanderhoof/PyDBML / test_iter

Method test_iter

test/test_classes/test_enum.py:31–45  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

29 e['abc']
30
31 def test_iter(self) -> None:
32 ei1 = EnumItem('created')
33 ei2 = EnumItem('running')
34 ei3 = EnumItem('donef')
35 ei4 = EnumItem('failure')
36 items = [
37 ei1,
38 ei2,
39 ei3,
40 ei4,
41 ]
42 e = Enum('job_status', items)
43
44 for i1, i2 in zip(e, [ei1, ei2, ei3, ei4]):
45 self.assertIs(i1, i2)
46
47
48def test_repr(enum_item1: EnumItem) -> None:

Callers

nothing calls this directly

Calls 2

EnumItemClass · 0.90
EnumClass · 0.90

Tested by

no test coverage detected