예제 #1
0
def test_unzip():
    rawdata = unzip_and_get_content('data/IR210423.zip')
    assert rawdata is not None

    rawdata = unzip_and_get_content('data/TS190910.ex_')
    assert rawdata is not None

    dest = unzip_to('data/TS190910.ex_', 'data')
    assert os.path.exists(dest)

    destdir = tempfile.gettempdir()
    dest = unzip_to('data/TS190910.ex_', destdir)
    assert os.path.exists(dest)
예제 #2
0
def test_fwf():
    dest = unzip_to('data/COTAHIST_A1986.zip', 'data')
    x = COTAHIST(dest)
    assert len(x.data) > 0
예제 #3
0
def test_TaxaSwap():
    dest = unzip_to('data/TS190910.ex_', 'data')
    x = TaxaSwap(dest)
    assert len(x.data) > 0
예제 #4
0
def test_BVBG086():
    dest = unzip_to('data/PR210423.zip', 'data')
    x = BVBG086(dest)
    assert len(x.data) > 0
예제 #5
0
def test_BVBG028():
    dest = unzip_to('data/IN210423.zip', 'data')
    x = BVBG028(dest)
    assert len(x.data) > 0