示例#1
0
def test_venue_id_not_a_num():
    pyball = PyBall()
    with pytest.raises(BadRequestError):
        pyball.get_venue("not_an_id")
示例#2
0
def test_venue():
    pyball = PyBall()
    return pyball.get_venue(1)
示例#3
0
def test_bad_venue_id():
    pyball = PyBall()
    with pytest.raises(InvalidIdError):
        pyball.get_venue(-1)