(self, tmpdir)
| 824 | assert l2.read_text(encoding="utf-8") == "foo" |
| 825 | |
| 826 | def test_visit_depth_first(self, tmpdir): |
| 827 | tmpdir.ensure("a", "1") |
| 828 | tmpdir.ensure("b", "2") |
| 829 | p3 = tmpdir.ensure("breadth") |
| 830 | lst = list(tmpdir.visit(lambda x: x.check(file=1))) |
| 831 | assert len(lst) == 3 |
| 832 | # check that breadth comes last |
| 833 | assert lst[2] == p3 |
| 834 | |
| 835 | def test_visit_rec_fnmatch(self, tmpdir): |
| 836 | p1 = tmpdir.ensure("a", "123") |