예제 #1
0
def test_player_id_not_a_num():
    pyball = PyBall()
    with pytest.raises(BadRequestError):
        pyball.get_player("not_an_id")
예제 #2
0
def test_player():
    pyball = PyBall()
    return pyball.get_player(446372)
예제 #3
0
def test_bad_player_id():
    pyball = PyBall()
    with pytest.raises(InvalidIdError):
        pyball.get_player(-1)