def setUp(self):
     self.conn1 = ConnectionStub()
     self.conn2 = ConnectionStub()
     zc1 = ZopeConnection(self.conn1, TypeInfoStub())
     self.datamgr1 = ZopeDBTransactionManager(zc1)
     zc2 = ZopeConnection(self.conn2, TypeInfoStub())
     self.datamgr1 = ZopeDBTransactionManager(zc2)
     zc1.registerForTxn()
     zc2.registerForTxn()
     self.txn_factory = transaction.get
 def setUp(self):
     self.conn = ConnectionStub()
     zc = ZopeConnection(self.conn, TypeInfoStub())
     self.datamgr = ZopeDBTransactionManager(zc)
     zc.registerForTxn()
     self.txn_factory = transaction.get