[Neo-report] r1843 gregory - /trunk/neo/tests/__init__.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Feb 23 16:59:16 CET 2010
Author: gregory
Date: Tue Feb 23 16:59:15 2010
New Revision: 1843
Log:
Remove unused fake connector.
Modified:
trunk/neo/tests/__init__.py
Modified: trunk/neo/tests/__init__.py
==============================================================================
--- trunk/neo/tests/__init__.py [iso-8859-1] (original)
+++ trunk/neo/tests/__init__.py [iso-8859-1] Tue Feb 23 16:59:15 2010
@@ -365,29 +365,3 @@
def getDescriptor(self):
return self.desc
-
-class TestElectionConnector(DoNothingConnector):
-
- def receive(self):
- """ simulate behavior of election """
- if self.packet_cpt == 0:
- # first : identify
- logging.info("in patched analyse / IDENTIFICATION")
- p = protocol.Packet()
- self.uuid = getNewUUID()
- p.AcceptIdentification(1, NodeType.MASTER, self.uuid,
- self.getAddress()[0], self.getAddress()[1], 1009, 2)
- self.packet_cpt += 1
- return p.encode()
- elif self.packet_cpt == 1:
- # second : answer primary master nodes
- logging.info("in patched analyse / ANSWER PM")
- p = protocol.Packet()
- p.answerPrimary(2, protocol.INVALID_UUID, [])
- self.packet_cpt += 1
- return p.encode()
- else:
- # then do nothing
- from neo.connector import ConnectorTryAgainException
- raise ConnectorTryAgainException
-
More information about the Neo-report
mailing list