

def test_bad_lcid():
    try:
        rrlyrae = fetch_rrlyrae()
    except (URLError, ConnectionError):
        raise SkipTest('No internet connection: data download test skipped')
    lcid = 'BAD_ID'
    assert_raises(ValueError, rrlyrae.get_lightcurve, lcid)
    assert_raises(ValueError, rrlyrae.get_metadata, lcid)
    assert_raises(ValueError, rrlyrae.get_obsmeta, lcid)
    try:
        rrlyrae = fetch_rrlyrae(partial=True)
    except (URLError, ConnectionError):
        raise SkipTest('No internet connection: data download test skipped')
    assert_raises(ValueError, lcid.get_lightcurve, rrlyrae.ids[0], return_1d=False)

dataset/ETHPy150Open astroML/gatspy/gatspy/datasets/tests/test_rrlyrae.py test_bad_lcid/VarMisuse@107/188 `rrlyrae`->`lcid`