server/test/unittest_undo.py
changeset 8695 358d8bed9626
parent 8694 d901c36bcfce
child 8812 52af67a2f0a5
equal deleted inserted replaced
8694:d901c36bcfce 8695:358d8bed9626
    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