def test_is_rock_valid(): """Muze byt ret. 'rock' jako input.""" assert game.is_val('rock') is True # muze byt jenom 'True', vsechny True stejne ID i False
def test_ai_turn_is_valid(): for _ in range(2000): turn = game.ai_turn() assert game.is_val(turn)
def test_is_paper_valid(): assert game.is_val('paper') is True
def test_is_lizard_valid(): assert game.is_val('lizard') is False
def test_is_scissors_valid(): assert game.is_val('scissors') is True