def test_moving_ball():
    ball = Ball(surface)
    for i in range(0, 10):
        oldDirection = ball.get_current_position()
        ball.update_ball()
        pygame.display.flip()
        assert ball.get_current_position() != oldDirection
def test_ball_creation():
    ball = Ball(surface)
    assert ball.get_current_position() == (400, 400)
    assert ball.get_score() == 0