示例#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)