def test_fives(): dice = Yatzy(1, 4, 3, 4, 5) assert dice.fives() == 5, "fallo en función fives, primer assert" dice = Yatzy(1, 4, 4, 6, 4) assert dice.fives() == 0, "fallo en función fives, segundo assert" dice = Yatzy(5, 5, 3, 5, 6) assert dice.fives() == 15, "fallo en función fives, tercer assert"
def test_fives(): assert 10 == Yatzy.fives(4, 4, 4, 5, 5) assert 15 == Yatzy.fives(4, 4, 5, 5, 5) assert 20 == Yatzy.fives(4, 5, 5, 5, 5)