Commit 2efac6a2 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Packet is now the second parameter (first is the queue).

Fix packet class path.
Check only the leaf class type.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1403 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 77e250c4
...@@ -489,12 +489,10 @@ class ClientApplicationTests(NeoTestBase): ...@@ -489,12 +489,10 @@ class ClientApplicationTests(NeoTestBase):
app.dispatcher = Mock() app.dispatcher = Mock()
app.tpc_begin(txn, tid) app.tpc_begin(txn, tid)
self.assertRaises(NEOStorageError, app.tpc_vote, txn) self.assertRaises(NEOStorageError, app.tpc_vote, txn)
self.assertEquals(len(conn.mockGetNamedCalls('abort')), 1)
calls = conn.mockGetNamedCalls('ask') calls = conn.mockGetNamedCalls('ask')
self.assertEquals(len(calls), 1) self.assertEquals(len(calls), 1)
packet = calls[0].getParam(0) packet = calls[0].getParam(1)
self.assertTrue(isinstance(packet, Packet)) self.assertTrue(isinstance(packet, Packets.AskStoreTransaction))
self.assertEquals(packet._type, 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