Commit 3ea5e49e authored by Aurel's avatar Aurel

one more check


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@287 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 44c03aa6
......@@ -222,6 +222,14 @@ server: 127.0.0.1:10023
self.assertEquals(packet.getType(), ANSWER_LAST_IDS)
return packet._decodeAnswerLastIDs()
def checkCalledAskLastIDs(self, conn, packet_number=0):
""" Check start operation message has been send"""
call = conn.mockGetNamedCalls("addPacket")[packet_number]
packet = call.getParam(0)
self.assertTrue(isinstance(packet, Packet))
self.assertEquals(packet.getType(), ASK_LAST_IDS)
return packet._decodeAskLastIDs()
# Tests
def test_01_connectionClosed(self):
uuid = self.identifyToMasterNode(node_type=MASTER_NODE_TYPE, port=self.master_port)
......@@ -527,6 +535,7 @@ server: 127.0.0.1:10023
self.assertEquals(len(conn.mockGetNamedCalls("expectMessage")), 1)
self.checkCalledAnswerPrimaryMaster(conn, 0)
self.checkCalledNotifyNodeInformation(conn, 1)
self.checkCalledAskLastIDs(conn, 2)
def test_06_handleAnnouncePrimaryMaster(self):
......
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