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

Method test___all__

Lib/test/test_operator.py:51–61  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49
50class OperatorTestCase:
51 def test___all__(self):
52 operator = self.module
53 actual_all = set(operator.__all__)
54 computed_all = set()
55 for name in vars(operator):
56 if name.startswith('__'):
57 continue
58 value = getattr(operator, name)
59 if value.__module__ in ('operator', '_operator'):
60 computed_all.add(name)
61 self.assertSetEqual(computed_all, actual_all)
62
63 def test_lt(self):
64 operator = self.module

Callers

nothing calls this directly

Calls 4

setFunction · 0.85
assertSetEqualMethod · 0.80
startswithMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected