equal
deleted
inserted
replaced
50 def assertUndoTransaction(self, txuuid, expected_errors=None): |
50 def assertUndoTransaction(self, txuuid, expected_errors=None): |
51 if expected_errors is None : |
51 if expected_errors is None : |
52 expected_errors = [] |
52 expected_errors = [] |
53 try: |
53 try: |
54 self.cnx.undo_transaction(txuuid) |
54 self.cnx.undo_transaction(txuuid) |
55 except UndoTransactionException, exn: |
55 except UndoTransactionException as exn: |
56 errors = exn.errors |
56 errors = exn.errors |
57 else: |
57 else: |
58 errors = [] |
58 errors = [] |
59 self.assertEqual(errors, expected_errors) |
59 self.assertEqual(errors, expected_errors) |
60 |
60 |