(self, path1)
| 171 | assert not l2.relto(l1) |
| 172 | |
| 173 | def test_listdir(self, path1): |
| 174 | p = path1.listdir() |
| 175 | assert path1.join(class="st">"sampledir") in p |
| 176 | assert path1.join(class="st">"samplefile") in p |
| 177 | with pytest.raises(error.ENOTDIR): |
| 178 | path1.join(class="st">"samplefile").listdir() |
| 179 | |
| 180 | def test_listdir_fnmatchstring(self, path1): |
| 181 | p = path1.listdir(class="st">"s*dir") |