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

Method test_or

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

Source from the content-addressed store, hash-verified

3618 BLANCO = RED|GREEN|BLUE
3619
3620 def test_or(self):
3621 Perm = self.Perm
3622 for i in Perm:
3623 for j in Perm:
3624 self.assertEqual((i | j), Perm(i.value | j.value))
3625 self.assertEqual((i | j).value, i.value | j.value)
3626 self.assertIs(type(i | j), Perm)
3627 for i in Perm:
3628 self.assertIs(i | i, i)
3629 Open = self.Open
3630 self.assertIs(Open.RO | Open.CE, Open.CE)
3631
3632 def test_and(self):
3633 Perm = self.Perm

Callers

nothing calls this directly

Calls 3

PermClass · 0.70
assertEqualMethod · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected