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