(self, opname)
| 165 | opname)) |
| 166 | |
| 167 | def __check_state(self, opname): |
| 168 | if self._state is not TransactionState.STARTED: |
| 169 | if self._state is TransactionState.NEW: |
| 170 | raise apg_errors.InterfaceError( |
| 171 | 'cannot {}; the transaction is not yet started'.format( |
| 172 | opname)) |
| 173 | self.__check_state_base(opname) |
| 174 | |
| 175 | async def __commit(self): |
| 176 | self.__check_state('commit') |
no test coverage detected