()
| 1882 | |
| 1883 | |
| 1884 | def test_py_filesystem_ops(): |
| 1885 | handler = DummyHandler() |
| 1886 | fs = PyFileSystem(handler) |
| 1887 | |
| 1888 | fs.create_dir("recursive", recursive=True) |
| 1889 | fs.create_dir("non-recursive", recursive=False) |
| 1890 | with pytest.raises(IOError): |
| 1891 | fs.create_dir("foobar") |
| 1892 | |
| 1893 | fs.delete_dir("delete_dir") |
| 1894 | fs.delete_dir_contents("delete_dir_contents") |
| 1895 | for path in ("", "/", "//"): |
| 1896 | with pytest.raises(ValueError): |
| 1897 | fs.delete_dir_contents(path) |
| 1898 | fs.delete_dir_contents(path, accept_root_dir=True) |
| 1899 | fs.delete_file("delete_file") |
| 1900 | fs.move("move_from", "move_to") |
| 1901 | fs.copy_file("copy_file_from", "copy_file_to") |
| 1902 | |
| 1903 | |
| 1904 | def test_py_open_input_stream(): |
nothing calls this directly
no test coverage detected