Commit d911e6a1 authored by Vincent Pelletier's avatar Vincent Pelletier

Remove unused helper methods.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2629 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent afadd664
...@@ -146,43 +146,6 @@ class ClientApplicationTests(NeoUnitTestBase): ...@@ -146,43 +146,6 @@ class ClientApplicationTests(NeoUnitTestBase):
app.tpc_begin(txn, tid=tid) app.tpc_begin(txn, tid=tid)
return txn return txn
def storeObject(self, app, oid=None, data='DATA'):
tid = app.local_var.tid
if oid is None:
oid = self.makeOID()
obj = (oid, tid, 'DATA', '', app.local_var.txn)
packet = Packets.AnswerStoreObject(conflicting=0, oid=oid, serial=tid)
packet.setId(0)
conn = Mock({ 'getNextId': 1, 'fakeReceived': packet, })
cell = Mock({ 'getAddress': 'FakeServer', 'getState': 'FakeState', })
app.cp = Mock({ 'getConnForCell': conn})
app.pt = Mock({ 'getCellListForOID': (cell, cell, ) })
return oid
def voteTransaction(self, app):
tid = app.local_var.tid
txn = app.local_var.txn
packet = Packets.AnswerStoreTransaction(tid=tid)
packet.setId(0)
conn = Mock({ 'getNextId': 1, 'fakeReceived': packet, })
cell = Mock({ 'getAddress': 'FakeServer', 'getState': 'FakeState', })
app.pt = Mock({ 'getCellListForTID': (cell, cell, ) })
app.cp = Mock({ 'getConnForCell': ReturnValues(None, conn), })
app.tpc_vote(txn, resolving_tryToResolveConflict)
def askFinishTransaction(self, app):
txn = app.local_var.txn
tid = app.local_var.tid
packet = Packets.AnswerTransactionFinished(tid)
packet.setId(0)
app.master_conn = Mock({
'getNextId': 1,
'getAddress': ('127.0.0.1', 10010),
'fakeReceived': packet,
})
app.local_var.txn_voted = True
app.tpc_finish(txn, None)
# common checks # common checks
def checkDispatcherRegisterCalled(self, app, conn): def checkDispatcherRegisterCalled(self, app, conn):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment