コード例 #1
0
ファイル: test_download.py プロジェクト: TUW-GEO/gldas
def test_get_last_gldas_folder_no_folder():
    path = os.path.join(os.path.dirname(__file__),
                        'folder_test', 'failure')
    last = get_last_gldas_folder(path, ['{:%Y}', '{:%j}'])
    last_should = None
    assert last == last_should
コード例 #2
0
ファイル: test_download.py プロジェクト: TUW-GEO/gldas
def test_get_last_gldas_folder():
    path = os.path.join(os.path.dirname(__file__),
                        'folder_test', 'success')
    last = get_last_gldas_folder(path, ['{:%Y}', '{:%j}'])
    last_should = os.path.join(path, "2014", "134")
    assert last == last_should
コード例 #3
0
ファイル: test_download.py プロジェクト: wpreimes/gldas
def test_get_last_gldas_folder_no_folder():
    path = os.path.join(os.path.dirname(__file__), "folder_test", "failure")
    last = get_last_gldas_folder(path, ["{time:%Y}", "{time:%j}"])
    last_should = None
    assert last == last_should
コード例 #4
0
ファイル: test_download.py プロジェクト: wpreimes/gldas
def test_get_last_gldas_folder():
    path = os.path.join(os.path.dirname(__file__), "folder_test", "success")
    last = get_last_gldas_folder(path, ["{time:%Y}", "{time:%j}"])
    last_should = os.path.join(path, "2014", "134")
    assert last == last_should
コード例 #5
0
def test_get_last_gldas_folder_no_folder():
    path = os.path.join(os.path.dirname(__file__),
                        'folder_test', 'failure')
    last = get_last_gldas_folder(path, ['{time:%Y}', '{time:%j}'])
    last_should = None
    assert last == last_should
コード例 #6
0
def test_get_last_gldas_folder():
    path = os.path.join(os.path.dirname(__file__),
                        'folder_test', 'success')
    last = get_last_gldas_folder(path, ['{time:%Y}', '{time:%j}'])
    last_should = os.path.join(path, "2014", "134")
    assert last == last_should