def test_makeRelativePath_win_only(cur_dir, target_path, result): assert makeRelativePath(cur_dir, target_path) == result
def test_makeRelativePath(cur_dir, target_path, result): if result: result = os.path.normpath(result) assert makeRelativePath(cur_dir, target_path) == result