def test_leap_second_data_load():
    ait.config.leapseconds._config['filename'] = os.path.join(os.path.dirname(__file__), 'testdata', 'dmc', 'leapseconds.dat')
    assert (type(dmc.LeapSeconds.leapseconds) == type([]))
    assert (dmc.LeapSeconds.leapseconds[0] == (datetime.datetime(1981, 7, 1), 1))
    assert (type(dmc.LeapSeconds.valid_date) == type(datetime.datetime.now()))
def test_leap_second_data_load():
    ait.config.leapseconds._config['filename'] = os.path.join(os.path.dirname(__file__), 'testdata', 'dmc', 'leapseconds.dat')
    assert (type(dmc.LeapSeconds.leapseconds) == type([]))
    assert (dmc.LeapSeconds.leapseconds[0] == (datetime.datetime(1981, 7, 1), 1))
    assert (type(dmc.LeapSeconds.valid_date) == type(datetime.datetime.now()))