(self, tmpdir, monkeypatch)
| 603 | assert not readonly_dir.check(exists=1) |
| 604 | |
| 605 | def test_remove_routes_ignore_errors(self, tmpdir, monkeypatch): |
| 606 | lst = [] |
| 607 | monkeypatch.setattr("shutil.rmtree", lambda *args, **kwargs: lst.append(kwargs)) |
| 608 | tmpdir.remove() |
| 609 | assert not lst[0]["ignore_errors"] |
| 610 | for val in (True, False): |
| 611 | lst[:] = [] |
| 612 | tmpdir.remove(ignore_errors=val) |
| 613 | assert lst[0]["ignore_errors"] == val |
| 614 | |
| 615 | def test_initialize_curdir(self): |
| 616 | assert str(local()) == os.getcwd() |