Beispiel #1
0
def test_player_doesnt_rotate_over_90_degrees():
    player = Player()
    player.rotation = (85, 0)
    player.rotate(10)
    assert (5, 0) == player.rotation
Beispiel #2
0
def test_player_rotates():
    player = Player()
    rot_before = player.rotation[0]
    player.rotate(90)
    rot_after = player.rotation[0]
    assert rot_after == rot_before + 90