Exemple #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
Exemple #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'
Exemple #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"
Exemple #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
Exemple #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'