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