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

Fix tests affected by commit #500.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@501 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 1be82862
...@@ -214,7 +214,7 @@ server: 127.0.0.1:10023 ...@@ -214,7 +214,7 @@ server: 127.0.0.1:10023
packet = call.getParam(0) packet = call.getParam(0)
self.assertTrue(isinstance(packet, Packet)) self.assertTrue(isinstance(packet, Packet))
self.assertEquals(packet.getType(), ASK_LAST_IDS) self.assertEquals(packet.getType(), ASK_LAST_IDS)
return packet._decodeAskLastIDs() return protocol._decodeAskLastIDs(packet._body)
# Tests # Tests
def test_01_connectionClosed(self): def test_01_connectionClosed(self):
......
...@@ -205,7 +205,7 @@ server: 127.0.0.1:10023 ...@@ -205,7 +205,7 @@ server: 127.0.0.1:10023
packet = call.getParam(0) packet = call.getParam(0)
self.assertTrue(isinstance(packet, Packet)) self.assertTrue(isinstance(packet, Packet))
self.assertEquals(packet.getType(), ANSWER_LAST_IDS) self.assertEquals(packet.getType(), ANSWER_LAST_IDS)
return packet._decodeAnswerLastIDs() return protocol._decodeAnswerLastIDs(packet._body)
def checkCalledAnswerUnfinishedTransactions(self, conn, packet_number=0): def checkCalledAnswerUnfinishedTransactions(self, conn, packet_number=0):
""" Check answerUnfinishedTransactions message has been send""" """ Check answerUnfinishedTransactions message has been send"""
...@@ -213,7 +213,7 @@ server: 127.0.0.1:10023 ...@@ -213,7 +213,7 @@ server: 127.0.0.1:10023
packet = call.getParam(0) packet = call.getParam(0)
self.assertTrue(isinstance(packet, Packet)) self.assertTrue(isinstance(packet, Packet))
self.assertEquals(packet.getType(), ANSWER_UNFINISHED_TRANSACTIONS) self.assertEquals(packet.getType(), ANSWER_UNFINISHED_TRANSACTIONS)
return packet._decodeAnswerUnfinishedTransactions() return protocol._decodeAnswerUnfinishedTransactions(packet._body)
# Common methods # Common methods
def getNewUUID(self): def getNewUUID(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