示例#1
0
def test_invalid_wine_type():
    with pytest.raises(ValueError):
        best_match_per_wine("cocacola")
示例#2
0
def test_best_match_per_wine_all():
    assert best_match_per_wine()[2] == 13.0
示例#3
0
def test_best_match_per_wine_type(case):
    wine_type, *result = case
    assert best_match_per_wine(wine_type) == tuple(result)