(self, tmp_path)
| 233 | PREFIX = "fun-" |
| 234 | |
| 235 | def test_make(self, tmp_path): |
| 236 | for i in range(10): |
| 237 | d = make_numbered_dir(root=tmp_path, prefix=self.PREFIX) |
| 238 | assert d.name.startswith(self.PREFIX) |
| 239 | assert d.name.endswith(str(i)) |
| 240 | |
| 241 | symlink = tmp_path.joinpath(self.PREFIX + "current") |
| 242 | if symlink.exists(): |
| 243 | # unix |
| 244 | assert symlink.is_symlink() |
| 245 | assert symlink.resolve() == d.resolve() |
| 246 | |
| 247 | def test_cleanup_lock_create(self, tmp_path): |
| 248 | d = tmp_path.joinpath("test") |
no test coverage detected