| 123 | assert not path1.join("samplefile").isdir() |
| 124 | |
| 125 | def test_dir(self, path1): |
| 126 | # print repr(path1.join("sampledir")) |
| 127 | assert path1.join("sampledir").check(dir=1) |
| 128 | assert path1.join("samplefile").check(notdir=1) |
| 129 | assert not path1.join("samplefile").check(dir=1) |
| 130 | assert path1.join("samplefile").exists() |
| 131 | assert not path1.join("samplefile").isdir() |
| 132 | assert path1.join("samplefile").isfile() |
| 133 | |
| 134 | def test_fnmatch_file(self, path1): |
| 135 | assert path1.join("samplefile").check(fnmatch="s*e") |