Exemple #1
0
 def test_rollback(self):
     transaction.begin()
     zc = ZopeConnection(ConnectionStub(), TypeInfoStub())
     self._txn_registered = True
     zc.rollback()
     self.assertEqual(zc._txn_registered, False,
                      "did not forget the transaction")