(self, opname)
| 151 | self._state = TransactionState.STARTED |
| 152 | |
| 153 | def __check_state_base(self, opname): |
| 154 | if self._state is TransactionState.COMMITTED: |
| 155 | raise apg_errors.InterfaceError( |
| 156 | 'cannot {}; the transaction is already committed'.format( |
| 157 | opname)) |
| 158 | if self._state is TransactionState.ROLLEDBACK: |
| 159 | raise apg_errors.InterfaceError( |
| 160 | 'cannot {}; the transaction is already rolled back'.format( |
| 161 | opname)) |
| 162 | if self._state is TransactionState.FAILED: |
| 163 | raise apg_errors.InterfaceError( |
| 164 | 'cannot {}; the transaction is in error state'.format( |
| 165 | opname)) |
| 166 | |
| 167 | def __check_state(self, opname): |
| 168 | if self._state is not TransactionState.STARTED: |
no outgoing calls
no test coverage detected