def test_bad_division(): pyball = PyBall() with pytest.raises(BadRequestError): pyball.get_division_by_id("InvalidID")
def test_division(): pyball = PyBall() return pyball.get_division_by_id(201)
def test_bad_division(): pyball = PyBall() with pytest.raises(BadRequestError): pyball.get_division_by_id("InvalidID")
def test_division(): pyball = PyBall() return pyball.get_division_by_id(201)