Commit 421d5c65 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Fix test method checkNoPacketSent to follow migration from addPacket to

notify/ask/answer.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@515 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 4d395a45
...@@ -175,8 +175,9 @@ class ClientApplicationTest(unittest.TestCase): ...@@ -175,8 +175,9 @@ class ClientApplicationTest(unittest.TestCase):
self.checkPacketSent(conn, packet_type, 'notify') self.checkPacketSent(conn, packet_type, 'notify')
def checkNoPacketSent(self, conn): def checkNoPacketSent(self, conn):
self.assertEquals(len(conn.mockGetNamedCalls('addPacket')), 0) self.assertEquals(len(conn.mockGetNamedCalls('notify')), 0)
self.assertEquals(len(conn.mockGetNamedCalls('expectMessage')), 0) self.assertEquals(len(conn.mockGetNamedCalls('answer')), 0)
self.assertEquals(len(conn.mockGetNamedCalls('ask')), 0)
# tests # tests
......
...@@ -142,7 +142,9 @@ server: 127.0.0.1:10020 ...@@ -142,7 +142,9 @@ server: 127.0.0.1:10020
def checkNoPacketSent(self, conn): def checkNoPacketSent(self, conn):
# no packet should be sent # no packet should be sent
self.assertEquals(len(conn.mockGetNamedCalls('addPacket')), 0) self.assertEquals(len(conn.mockGetNamedCalls('notify')), 0)
self.assertEquals(len(conn.mockGetNamedCalls('answer')), 0)
self.assertEquals(len(conn.mockGetNamedCalls('ask')), 0)
# Tests # Tests
def test_01_connectionCompleted(self): def test_01_connectionCompleted(self):
......
...@@ -90,7 +90,9 @@ class StorageOperationTests(unittest.TestCase): ...@@ -90,7 +90,9 @@ class StorageOperationTests(unittest.TestCase):
def checkNoPacketSent(self, conn): def checkNoPacketSent(self, conn):
# no packet should be sent # no packet should be sent
self.assertEquals(len(conn.mockGetNamedCalls('addPacket')), 0) self.assertEquals(len(conn.mockGetNamedCalls('notify')), 0)
self.assertEquals(len(conn.mockGetNamedCalls('answer')), 0)
self.assertEquals(len(conn.mockGetNamedCalls('ask')), 0)
def setUp(self): def setUp(self):
logging.basicConfig(level = logging.ERROR) logging.basicConfig(level = logging.ERROR)
......
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