예제 #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)