MCPcopy Index your code
hub / github.com/python/cpython / test_member_length

Method test_member_length

Lib/test/test_enum.py:4458–4462  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4456 self.assertEqual(list(Color.WHITE), [Color.RED, Color.GREEN, Color.BLUE])
4457
4458 def test_member_length(self):
4459 self.assertEqual(self.Color.__len__(self.Color.BLACK), 0)
4460 self.assertEqual(self.Color.__len__(self.Color.GREEN), 1)
4461 self.assertEqual(self.Color.__len__(self.Color.PURPLE), 2)
4462 self.assertEqual(self.Color.__len__(self.Color.BLANCO), 3)
4463
4464 def test_aliases(self):
4465 Color = self.Color

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
__len__Method · 0.45

Tested by

no test coverage detected