(
project_name, # type: str
version, # type: str
is_wheel, # type: bool
)
| 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) |
no test coverage detected