def test_matches__api_level_too_large(self) -> None: matcher = VersionMatcher(5, 10, 3) file_info = FileInfo("", "", "", 7, 4) assert not matcher.matches(file_info)
def test_matches__min_version_too_large(self) -> None: matcher = VersionMatcher(5, 10, 3) file_info = FileInfo("", "", "", 11, 2) assert not matcher.matches(file_info)
def test_matches__version_matches_upper(self) -> None: matcher = VersionMatcher(5, 10, 3) file_info = FileInfo("", "", "", 10, 2) assert matcher.matches(file_info)
def test_matches__api_level_match(self) -> None: matcher = VersionMatcher(5, 10, 3) file_info = FileInfo("", "", "", 7, 3) assert matcher.matches(file_info)
def test_matches__version_in_between(self) -> None: matcher = VersionMatcher(5, 10, 3) file_info = FileInfo("", "", "", 7, 2) assert matcher.matches(file_info)