Commit 56bcf0c6 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Fix packet kind in base test case.

NotifyTransactionFinished is misspelled, it is an answer packet.
Similary, UnlockInformation is a notification, not a request.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1485 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent b7f4fbba
...@@ -263,7 +263,7 @@ class NeoTestBase(unittest.TestCase): ...@@ -263,7 +263,7 @@ class NeoTestBase(unittest.TestCase):
return self.checkNotifyPacket(conn, Packets.StartOperation, **kw) return self.checkNotifyPacket(conn, Packets.StartOperation, **kw)
def checkNotifyTransactionFinished(self, conn, **kw): def checkNotifyTransactionFinished(self, conn, **kw):
return self.checkNotifyPacket(conn, Packets.NotifyTransactionFinished, **kw) return self.checkAnswerPacket(conn, Packets.NotifyTransactionFinished, **kw)
def checkNotifyInformationLocked(self, conn, **kw): def checkNotifyInformationLocked(self, conn, **kw):
return self.checkAnswerPacket(conn, Packets.NotifyInformationLocked, **kw) return self.checkAnswerPacket(conn, Packets.NotifyInformationLocked, **kw)
...@@ -272,7 +272,7 @@ class NeoTestBase(unittest.TestCase): ...@@ -272,7 +272,7 @@ class NeoTestBase(unittest.TestCase):
return self.checkAskPacket(conn, Packets.LockInformation, **kw) return self.checkAskPacket(conn, Packets.LockInformation, **kw)
def checkUnlockInformation(self, conn, **kw): def checkUnlockInformation(self, conn, **kw):
return self.checkAskPacket(conn, Packets.UnlockInformation, **kw) return self.checkNotifyPacket(conn, Packets.UnlockInformation, **kw)
def checkRequestIdentification(self, conn, **kw): def checkRequestIdentification(self, conn, **kw):
return self.checkAskPacket(conn, Packets.RequestIdentification, **kw) return self.checkAskPacket(conn, Packets.RequestIdentification, **kw)
......
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