@nose.tools.raises(ValueError)
@mock.patch('requests.get', mock.MagicMock(return_value=MockResponse(LEAPSECOND_DATA_RESPONSE, 400)))
def test_failed_leapsecond_load_and_update():
    ait.config.leapseconds._config['filename'] = os.path.join(os.path.dirname(__file__), 'invalidpath', 'leapseconds.dat')
    dmc.LeapSeconds._data = None
    dmc.LeapSeconds._load_leap_second_data()
@nose.tools.raises(ValueError)
@mock.patch('requests.get', mock.MagicMock(return_value=MockResponse(LEAPSECOND_DATA_RESPONSE, 400)))
def test_failed_leapsecond_load_and_update():
    ait.config.leapseconds._config['filename'] = os.path.join(os.path.dirname(__file__), 'invalidpath', 'leapseconds.dat')
    dmc.LeapSeconds._data = None
    dmc.LeapSeconds._load_leap_second_data()