(self, id)
| 224 | self.store.close() |
| 225 | |
| 226 | def _set_id(self, id): |
| 227 | # for testing: change the id of an existing repository |
| 228 | assert self.opened |
| 229 | assert isinstance(id, bytes) and len(id) == 32 |
| 230 | self.id = id |
| 231 | self.store.store("config/id", bin_to_hex(id).encode()) |
| 232 | |
| 233 | def _lock_refresh(self): |
| 234 | if self.lock is not None: |
no test coverage detected