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

Method test_for_top_level

Lib/test/test_importlib/metadata/test_api.py:61–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

59 distribution(prefix)
60
61 def test_for_top_level(self):
62 tests = [
63 ('egginfo-pkg', 'mod'),
64 ('egg_with_no_modules-pkg', ''),
65 ]
66 for pkg_name, expect_content in tests:
67 with self.subTest(pkg_name):
68 self.assertEqual(
69 distribution(pkg_name).read_text('top_level.txt').strip(),
70 expect_content,
71 )
72
73 def test_read_text(self):
74 tests = [

Callers

nothing calls this directly

Calls 5

distributionFunction · 0.90
subTestMethod · 0.45
assertEqualMethod · 0.45
stripMethod · 0.45
read_textMethod · 0.45

Tested by

no test coverage detected