(self, tmp_path)
| 437 | PREFIX = "fun-" |
| 438 | |
| 439 | def test_make(self, tmp_path): |
| 440 | for i in range(10): |
| 441 | d = make_numbered_dir(root=tmp_path, prefix=self.PREFIX) |
| 442 | assert d.name.startswith(self.PREFIX) |
| 443 | assert d.name.endswith(str(i)) |
| 444 | |
| 445 | symlink = tmp_path.joinpath(self.PREFIX + "current") |
| 446 | if symlink.exists(): |
| 447 | # unix |
| 448 | assert symlink.is_symlink() |
| 449 | assert symlink.resolve() == d.resolve() |
| 450 | |
| 451 | def test_cleanup_lock_create(self, tmp_path): |
| 452 | d = tmp_path.joinpath("test") |
no test coverage detected