(self, path1)
| 324 | assert obj.get("answer", None) == 42 |
| 325 | |
| 326 | def test_visit_filesonly(self, path1): |
| 327 | p = [] |
| 328 | for i in path1.visit(lambda x: x.check(file=1)): |
| 329 | p.append(i.relto(path1)) |
| 330 | assert "sampledir" not in p |
| 331 | assert path1.sep.join(["sampledir", "otherfile"]) in p |
| 332 | |
| 333 | def test_visit_nodotfiles(self, path1): |
| 334 | p = [] |