Commit f4868b36 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Remove useless print statements.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@1206 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 89c01627
......@@ -789,22 +789,18 @@ class ClientApplicationTests(NeoTestBase):
# Seventh packet : askNodeInformation succeeded
all_passed = []
def _waitMessage8(self, conn=None, msg_id=None, handler=None):
print '_waitMessage8'
all_passed.append(1)
# Sixth packet : askPartitionTable succeeded
def _waitMessage7(self, conn=None, msg_id=None, handler=None):
print '_waitMessage7'
app.pt = Mock({'operational': True})
Application._waitMessage = _waitMessage8
# fifth packet : request node identification succeeded
def _waitMessage6(self, conn=None, msg_id=None, handler=None):
print '_waitMessage6'
conn.setUUID('D' * 16)
app.uuid = 'C' * 16
Application._waitMessage = _waitMessage7
# fourth iteration : connection to primary master succeeded
def _waitMessage5(self, conn=None, msg_id=None, handler=None):
print '_waitMessage5'
app.trying_master_node = app.primary_master_node = Mock({
'getServer': ('192.168.1.1', 10000),
'__str__': 'Fake master node',
......@@ -812,13 +808,11 @@ class ClientApplicationTests(NeoTestBase):
Application._waitMessage = _waitMessage6
# third iteration : node not ready
def _waitMessage4(app, conn=None, msg_id=None, handler=None):
print '_waitMessage4'
app.setNodeNotReady()
app.trying_master_node = None
Application._waitMessage = _waitMessage5
# second iteration : master node changed
def _waitMessage3(app, conn=None, msg_id=None, handler=None):
print '_waitMessage3'
app.primary_master_node = Mock({
'getServer': ('192.168.1.1', 10000),
'__str__': 'Fake master node',
......@@ -826,12 +820,10 @@ class ClientApplicationTests(NeoTestBase):
Application._waitMessage = _waitMessage4
# first iteration : connection failed
def _waitMessage2(app, conn=None, msg_id=None, handler=None):
print '_waitMessage2'
app.trying_master_node = None
Application._waitMessage = _waitMessage3
# do nothing for the first call
def _waitMessage1(app, conn=None, msg_id=None, handler=None):
print '_waitMessage1'
Application._waitMessage = _waitMessage2
_waitMessage_old = Application._waitMessage
Application._waitMessage = _waitMessage1
......
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