def test_random_move_wyrzuca_wyjatek(): tekst = ''' * * * * * * * * * * * * * * * * * * * * * * * * * * * W W * * * * * * W W * * * * * * * * * * * * * * * * * * * * * * * * * * * ''' plansza.load(tekst) random_move(player, plansza)
def test_random_move_zwraca_ruch(): x, y = random_move(player, plansza) assert 0<= x <8 assert 0<= y <8