Exemplo n.º 1
0
def test_validate_guess(guess, responce):
    g = GuessGame(5)
    assert g._validate(guess) == responce
Exemplo n.º 2
0
def test_invalid_guesses(error_guess, error):
    g = GuessGame(5)
    with pytest.raises(InvalidNumber) as e:
        g._validate(error_guess)
    assert str(e.value) == error