[Neo-report] r2746 jm - /trunk/neo/tests/testConnection.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Apr 29 10:26:19 CEST 2011
Author: jm
Date: Fri Apr 29 10:26:19 2011
New Revision: 2746
Log:
tests: fix TypeError in output log
Modified:
trunk/neo/tests/testConnection.py
Modified: trunk/neo/tests/testConnection.py
==============================================================================
--- trunk/neo/tests/testConnection.py [iso-8859-1] (original)
+++ trunk/neo/tests/testConnection.py [iso-8859-1] Fri Apr 29 10:26:19 2011
@@ -159,7 +159,7 @@ class ConnectionTests(NeoUnitTestBase):
def test_02_ListeningConnection1(self):
# test init part
def getNewConnection(self):
- return self, "127.0.0.1"
+ return self, ('', 0)
DoNothingConnector.getNewConnection = getNewConnection
addr = ("127.0.0.7", 93413)
bc = self._makeListeningConnection(addr=addr)
@@ -368,7 +368,7 @@ class ConnectionTests(NeoUnitTestBase):
def test_07_Connection_addPacket(self):
# new packet
- p = Mock({"encode" : "testdata"})
+ p = Mock({"encode" : "testdata", "getId": 0})
p.handler_method_name = 'testmethod'
bc = self._makeConnection()
self._checkWriteBuf(bc, '')
More information about the Neo-report
mailing list