MCPcopy Index your code
hub / github.com/python/mypy / test_python_package

Method test_python_package

mypy/test/teststubgen.py:1617–1626  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1615 assert p.subpackages == []
1616
1617 def test_python_package(self) -> None:
1618 with ModuleInspect() as m:
1619 p = m.get_package_properties("unittest")
1620 assert p is not None
1621 assert p.name == "unittest"
1622 assert p.file
1623 assert p.path
1624 assert p.is_c_module is False
1625 assert p.subpackages
1626 assert all(sub.startswith("unittest.") for sub in p.subpackages)
1627
1628 def test_c_module(self) -> None:
1629 with ModuleInspect() as m:

Callers

nothing calls this directly

Calls 4

ModuleInspectClass · 0.90
allFunction · 0.85
startswithMethod · 0.45

Tested by

no test coverage detected