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

Method test_check_all

Lib/test/test_statistics.py:688–696  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

686 self.assertHasAttr(self.module, meta)
687
688 def test_check_all(self):
689 # Check everything in __all__ exists and is public.
690 module = self.module
691 for name in module.__all__:
692 # No private names in __all__:
693 self.assertNotStartsWith(name, "_",
694 'private name "%s" in __all__' % name)
695 # And anything in __all__ must exist:
696 self.assertHasAttr(module, name)
697
698
699class StatisticsErrorTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

assertNotStartsWithMethod · 0.80
assertHasAttrMethod · 0.80

Tested by

no test coverage detected