(self, path1)
| 220 | assert list(p.visit(ignore=error.ENOENT)) == [] |
| 221 | |
| 222 | def test_visit_endswith(self, path1): |
| 223 | p = [] |
| 224 | for i in path1.visit(lambda x: x.check(endswith="file")): |
| 225 | p.append(i.relto(path1)) |
| 226 | assert path1.sep.join(["sampledir", "otherfile"]) in p |
| 227 | assert "samplefile" in p |
| 228 | |
| 229 | def test_cmp(self, path1): |
| 230 | path1 = path1.join("samplefile") |