Example #1
0
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
Example #2
0
def test_ai_turn_is_valid():
	for _ in range(2000):
		turn = game.ai_turn()
		assert game.is_val(turn)
Example #3
0
def test_is_paper_valid():
	assert game.is_val('paper') is True
Example #4
0
def test_is_lizard_valid():
	assert game.is_val('lizard') is False
Example #5
0
def test_is_scissors_valid():
	assert game.is_val('scissors') is True