def test_leap_second_attrs():
    ait.config.leapseconds._config['filename'] = os.path.join(os.path.dirname(__file__), 'testdata', 'dmc', 'leapseconds.dat')
    ls = dmc.LeapSeconds
    ls._load_leap_second_data()
    assert (ls.leapseconds == ls._data['leapseconds'])
    assert (ls.valid_date == ls._data['valid'])
    assert (ls.get_current_GPS_offset() == ls.leapseconds[(- 1)][(- 1)])
def test_leap_second_attrs():
    ait.config.leapseconds._config['filename'] = os.path.join(os.path.dirname(__file__), 'testdata', 'dmc', 'leapseconds.dat')
    ls = dmc.LeapSeconds
    ls._load_leap_second_data()
    assert (ls.leapseconds == ls._data['leapseconds'])
    assert (ls.valid_date == ls._data['valid'])
    assert (ls.get_current_GPS_offset() == ls.leapseconds[(- 1)][(- 1)])