(self)
| 654 | touch(os.path.join(self.base, b"d", b"z")) |
| 655 | |
| 656 | def test_sorted_files(self): |
| 657 | res = list(util.sorted_walk(self.base)) |
| 658 | assert len(res) == 2 |
| 659 | assert res[0] == (self.base, [b"d"], [b"x", b"y"]) |
| 660 | assert res[1] == (os.path.join(self.base, b"d"), [], [b"z"]) |
| 661 | |
| 662 | def test_ignore_file(self): |
| 663 | res = list(util.sorted_walk(self.base, (b"x",))) |