

def test_rrlyrae_templates():
    try:
        templates = fetch_rrlyrae_templates()
    except (URLError, ConnectionError):
        raise SkipTest('No internet connection: data download test skipped')
    filename = templates.filenames[0]
    tid = templates.ids[0]
    t = templates.get_template(tid)
    assert_raises(ValueError, templates.get_template, 'BAD_ID')

dataset/ETHPy150Open astroML/gatspy/gatspy/datasets/tests/test_rrlyrae.py test_rrlyrae_templates/original