def test_path_splitter_splits_path_string_by_separator_and_removes_extension( x): assume(all(x)) z = py23_str(pathlib.Path(*x[:-2])) + '.' + x[-1] y = list(pathlib.Path(z).parts) assert _path_splitter(z) == y[:-1] + [pathlib.Path(z).stem ] + [pathlib.Path(z).suffix]
def test_path_splitter_splits_path_string_by_separator_and_removes_extension(x): assume(len(x) > 2) assume(all(x)) z = py23_str(pathlib.Path(*x[:-2])) + '.' + x[-1] y = list(pathlib.Path(z).parts) assert _path_splitter(z) == y[:-1] + [pathlib.Path(z).stem] + [pathlib.Path(z).suffix]
def test_path_splitter_splits_path_string_by_separator_and_removes_extension_example(): z = '/this/is/a/path/file.exe' y = list(pathlib.Path(z).parts) assert _path_splitter(z) == y[:-1] + [pathlib.Path(z).stem] + [pathlib.Path(z).suffix]
def test_path_splitter_splits_path_string_by_separator(x): assume(len(x) > 1) assume(all(x)) z = py23_str(pathlib.Path(*x)) assert _path_splitter(z) == list(pathlib.Path(z).parts)
def test_path_splitter_splits_path_string_by_separator_example(): z = '/this/is/a/path' assert _path_splitter(z) == list(pathlib.Path(z).parts)
def test_path_splitter_splits_path_string_by_separator_and_removes_extension(x): z = py23_str(pathlib.Path(*x[:-2])) + '.' + x[-1] y = tuple(pathlib.Path(z).parts) assert tuple(_path_splitter(z)) == y[:-1] + (pathlib.Path(z).stem, pathlib.Path(z).suffix)
def test_path_splitter_splits_path_string_by_separator_and_removes_extension_example(): z = '/this/is/a/path/file.exe' y = tuple(pathlib.Path(z).parts) assert tuple(_path_splitter(z)) == y[:-1] + (pathlib.Path(z).stem, pathlib.Path(z).suffix)
def test_path_splitter_splits_path_string_by_separator(x): z = py23_str(pathlib.Path(*x)) assert tuple(_path_splitter(z)) == tuple(pathlib.Path(z).parts)
def test_path_splitter_splits_path_string_by_separator_example(): z = '/this/is/a/path' assert tuple(_path_splitter(z)) == tuple(pathlib.Path(z).parts) z = pathlib.Path('/this/is/a/path') assert tuple(_path_splitter(z)) == tuple(pathlib.Path(z).parts)
def test_path_splitter_splits_path_string_by_separator_and_removes_extension(x): assume(all(x)) z = py23_str(pathlib.Path(*x[:-2])) + '.' + x[-1] y = tuple(pathlib.Path(z).parts) assert tuple(_path_splitter(z)) == y[:-1] + (pathlib.Path(z).stem, pathlib.Path(z).suffix)
def test_path_splitter_splits_path_string_by_separator(x): assume(all(x)) z = py23_str(pathlib.Path(*x)) assert tuple(_path_splitter(z)) == tuple(pathlib.Path(z).parts)
def test_path_splitter_splits_path_string_by_separator(x): assume(all(x)) z = py23_str(pathlib.Path(*x)) assert _path_splitter(z) == list(pathlib.Path(z).parts)