Commit 1c024d1e authored by Grégory Wisniewski's avatar Grégory Wisniewski

Use checkAskPacket.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1920 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 74b97fef
...@@ -532,10 +532,7 @@ class ClientApplicationTests(NeoTestBase): ...@@ -532,10 +532,7 @@ class ClientApplicationTests(NeoTestBase):
app.tpc_begin(txn, tid) app.tpc_begin(txn, tid)
self.assertRaises(NEOStorageError, app.tpc_vote, txn, self.assertRaises(NEOStorageError, app.tpc_vote, txn,
resolving_tryToResolveConflict) resolving_tryToResolveConflict)
calls = conn.mockGetNamedCalls('ask') self.checkAskPacket(conn, Packets.AskStoreTransaction)
self.assertEquals(len(calls), 1)
packet = calls[0].getParam(1)
self.assertTrue(isinstance(packet, Packets.AskStoreTransaction))
def test_tpc_vote3(self): def test_tpc_vote3(self):
app = self.getApp() app = self.getApp()
......
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