def test_parse_version_string_raise_value_error(self) -> None: """Test parse_version_string.""" with pytest.raises( ValueError, match=re.escape( f"provided version doesn't conform to regex: {TFEnvManager.VERSION_REGEX}" ), ): TFEnvManager.parse_version_string("0.15")
def test_parse_version_string( self, provided: str, expected: Optional[VersionTuple] ) -> None: """Test parse_version_string.""" assert TFEnvManager.parse_version_string(provided) == expected