def test_bad_draft_year(): pyball = PyBall() with pytest.raises(BadRequestError): pyball.get_draft_by_year("BadYear")
def test_draft(): pyball = PyBall() return pyball.get_draft_by_year(2017)
def test_bad_draft_year(): pyball = PyBall() with pytest.raises(BadRequestError): pyball.get_draft_by_year("BadYear")
def test_draft(): pyball = PyBall() return pyball.get_draft_by_year(2017)