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):
app.dispatcher = Mock()
app.tpc_begin(txn, tid)
self.assertRaises(NEOStorageError, app.tpc_vote, txn)
self.assertEquals(len(conn.mockGetNamedCalls('abort')), 1)
calls = conn.mockGetNamedCalls('ask')
self.assertEquals(len(calls), 1)
packet = calls[0].getParam(0)
self.assertTrue(isinstance(packet, Packet))
self.assertEquals(packet._type, AskStoreTransaction)
packet = calls[0].getParam(1)
self.assertTrue(isinstance(packet, Packets.AskStoreTransaction))
def test_tpc_vote3(self):
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