@nose.tools.raises(ValueError)
def test_leap_second_by_date_invalid_gps_date():
    ait.config.leapseconds._config['filename'] = os.path.join(os.path.dirname(__file__), 'testdata', 'dmc', 'leapseconds.dat')
    dmc.LeapSeconds._load_leap_second_data()
    dmc.LeapSeconds.get_GPS_offset_for_date(datetime.datetime(1980, 1, 1))
@nose.tools.raises(ValueError)
def test_leap_second_by_date_invalid_gps_date():
    ait.config.leapseconds._config['filename'] = os.path.join(os.path.dirname(__file__), 'testdata', 'dmc', 'leapseconds.dat')
    dmc.LeapSeconds._load_leap_second_data()
    dmc.LeapSeconds.get_GPS_offset_for_date(datetime.datetime(1980, 1, 1))