def test_match_rel_ok(): pe = PackageEntry('acme.x', '1.3.10', None) assert pe.match(PackageEntry.ANY) assert not pe.match(PackageEntry.DEV) assert not pe.match(PackageEntry.SRC) assert pe.match(PackageEntry.REL)
def test_match_source_ok(): pe = PackageEntry('acme.x', '1.3.10dev1', 'path/to/source') assert pe.match(PackageEntry.ANY) assert not pe.match(PackageEntry.DEV) assert pe.match(PackageEntry.SRC)