MCPcopy
hub / github.com/pex-tool/pex / assert_dist

Function assert_dist

tests/test_resolver.py:579–590  ·  view source on GitHub ↗
(
        project_name,  # type: str
        version,  # type: str
        is_wheel,  # type: bool
    )

Source from the content-addressed store, hash-verified

577 assert 3 == len(distributions_by_name)
578
579 def assert_dist(
580 project_name, # type: str
581 version, # type: str
582 is_wheel, # type: bool
583 ):
584 # type: (...) -> None
585
586 dist = distributions_by_name[project_name]
587 assert version == dist.version
588 assert is_wheel == (
589 dist_metadata.is_wheel(dist.location) and zipfile.is_zipfile(dist.location)
590 )
591
592 assert_dist("project1", "1.0.0", is_wheel=False)
593 assert_dist("project2", "2.0.0", is_wheel=True)

Callers 1

test_download2Function · 0.85

Calls 1

is_wheelMethod · 0.45

Tested by

no test coverage detected