[Neo-report] r2610 gregory - /trunk/neo/tests/client/testConnectionPool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Jan 11 15:54:50 CET 2011
Author: gregory
Date: Tue Jan 11 15:54:50 2011
New Revision: 2610
Log:
Fix tests for r2602.
Modified:
trunk/neo/tests/client/testConnectionPool.py
Modified: trunk/neo/tests/client/testConnectionPool.py
==============================================================================
--- trunk/neo/tests/client/testConnectionPool.py [iso-8859-1] (original)
+++ trunk/neo/tests/client/testConnectionPool.py [iso-8859-1] Tue Jan 11 15:54:50 2011
@@ -80,7 +80,7 @@ class ConnectionPoolTests(NeoUnitTestBas
def test_iterateForObject_connectionRefused(self):
# connection refused at the first try
oid = self.getOID(1)
- node = Mock({'__repr__': 'node'})
+ node = Mock({'__repr__': 'node', 'isRunning': True})
cell = Mock({'__repr__': 'cell', 'getNode': node})
conn = Mock({'__repr__': 'conn'})
pt = Mock({'getCellListForOID': [cell]})
@@ -92,7 +92,7 @@ class ConnectionPoolTests(NeoUnitTestBas
def test_iterateForObject_connectionAccepted(self):
# connection accepted
oid = self.getOID(1)
- node = Mock({'__repr__': 'node'})
+ node = Mock({'__repr__': 'node', 'isRunning': True})
cell = Mock({'__repr__': 'cell', 'getNode': node})
conn = Mock({'__repr__': 'conn'})
pt = Mock({'getCellListForOID': [cell]})
More information about the Neo-report
mailing list