@pytest.mark.parametrize('filename, expect', [('ATL06_20190525202604_08790310_004_01.h5', [879, 3, '2019-05-25']), ('ATL06_20190614194425_11840310_004_01.h5', [1184, 3, '2019-06-14']), ('ATL07-02_20190624063616_13290301_004_01.h5', [1329, 3, '2019-06-24']), ('ATL07-02_20190602190916_10010301_004_01.h5', [1001, 3, '2019-06-02']), ('ATL10-02_20190611072656_11310301_004_01.h5', [1131, 3, '2019-06-11']), ('ATL10-02_20190731045538_05060401_004_01.h5', [506, 4, '2019-07-31']), ('ATL12_20190615023544_11890301_004_01.h5', [1189, 3, '2019-06-15']), ('ATL12_20190721170332_03610401_004_01.h5', [361, 4, '2019-07-21'])])
def test_gran_paras(filename, expect):
    para_list = vis.gran_paras(filename)
    assert (para_list == expect)
@pytest.mark.parametrize('filename, expect', [('ATL06_20190525202604_08790310_004_01.h5', [879, 3, '2019-05-25']), ('ATL06_20190614194425_11840310_004_01.h5', [1184, 3, '2019-06-14']), ('ATL07-02_20190624063616_13290301_004_01.h5', [1329, 3, '2019-06-24']), ('ATL07-02_20190602190916_10010301_004_01.h5', [1001, 3, '2019-06-02']), ('ATL10-02_20190611072656_11310301_004_01.h5', [1131, 3, '2019-06-11']), ('ATL10-02_20190731045538_05060401_004_01.h5', [506, 4, '2019-07-31']), ('ATL12_20190615023544_11890301_004_01.h5', [1189, 3, '2019-06-15']), ('ATL12_20190721170332_03610401_004_01.h5', [361, 4, '2019-07-21'])])
def test_gran_paras(filename, expect):
    para_list = vis.gran_paras(filename)
    assert (para_list == expect)