示例#1
0
def test_get_season_took_too_long():
    pyball = PyBall()
    with pytest.raises(TookTooLongError):
        pyball._get("{0}/seasons".format(BASE_URL))
示例#2
0
def test_get_not_found_draft_prospects():
    pyball = PyBall()
    with pytest.raises(NotFound):
        pyball._get("{}/draft/prospects".format(BASE_URL))
示例#3
0
def test_get_season_by_id_took_too_long():
    pyball = PyBall()
    with pytest.raises(TookTooLongError):
        pyball._get("{0}/seasons/{1}".format(BASE_URL, "fall"))