Esempio n. 1
0
def test_get_last_dir_in_dir_failure():
    path = os.path.join(os.path.dirname(__file__),
                        'folder_test', 'failure')
    last_dir = get_last_formatted_dir_in_dir(path, "{:%Y}")
    assert last_dir == None
Esempio n. 2
0
def test_get_last_dir_in_dir():
    path = os.path.join(os.path.dirname(__file__),
                        'folder_test', 'success')
    last_dir = get_last_formatted_dir_in_dir(path, "{:%Y}")
    assert last_dir == '2014'
Esempio n. 3
0
def test_get_last_dir_in_dir():
    path = os.path.join(os.path.dirname(__file__), "folder_test", "success")
    last_dir = get_last_formatted_dir_in_dir(path, "{time:%Y}")
    assert last_dir == "2014"
Esempio n. 4
0
def test_get_last_dir_in_dir_failure():
    path = os.path.join(os.path.dirname(__file__), "folder_test", "failure")
    last_dir = get_last_formatted_dir_in_dir(path, "{time:%Y}")
    assert last_dir == None
Esempio n. 5
0
def test_get_last_dir_in_dir():
    path = os.path.join(os.path.dirname(__file__),
                        'folder_test', 'success')
    last_dir = get_last_formatted_dir_in_dir(path, "{time:%Y}")
    assert last_dir == '2014'