(self)
| 77 | ) |
| 78 | |
| 79 | def test_read_text(self): |
| 80 | tests = [ |
| 81 | ('egginfo-pkg', 'mod\n'), |
| 82 | ('egg_with_no_modules-pkg', '\n'), |
| 83 | ] |
| 84 | for pkg_name, expect_content in tests: |
| 85 | with self.subTest(pkg_name): |
| 86 | top_level = [ |
| 87 | path for path in files(pkg_name) if path.name == 'top_level.txt' |
| 88 | ][0] |
| 89 | self.assertEqual(top_level.read_text(), expect_content) |
| 90 | |
| 91 | def test_entry_points(self): |
| 92 | eps = entry_points() |
nothing calls this directly
no test coverage detected