def test_commit(self):
     transaction.begin()
     zc = ZopeConnection(ConnectionStub(), TypeInfoStub())
     self._txn_registered = True
     zc.commit()
     self.assertEqual(zc._txn_registered, False,
                      "did not forget the transaction")
Example #2
0
 def test_commit(self):
     transaction.begin()
     zc = ZopeConnection(ConnectionStub(), TypeInfoStub())
     self._txn_registered = True
     zc.commit()
     self.assertEqual(zc._txn_registered, False,
                      "did not forget the transaction")
Example #3
0
 def commit(self):
     try:
         ZopeConnection.commit(self)
     except psycopg2.Error as error:
         _handle_psycopg_exception(error)
Example #4
0
 def commit(self):
     try:
         ZopeConnection.commit(self)
     except psycopg2.Error, error:
         _handle_psycopg_exception(error)