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

Fix a test and remove unused code.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@560 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 95fcfdb3
......@@ -266,13 +266,14 @@ class ClientEventHandlerTest(NeoTestBase):
def test_masterAcceptNodeIdentification(self):
node = Mock({'setUUID': None})
class FakeLocal:
from Queue import Queue
queue = Queue()
class App:
nm = Mock({'getNodeByServer': node})
storage_node = None
pt = None
def getQueue(self):
return None
local_var = FakeLocal()
app = App()
dispatcher = self.getDispatcher()
client_handler = PrimaryBoostrapEventHandler(app, dispatcher)
......@@ -295,9 +296,6 @@ class ClientEventHandlerTest(NeoTestBase):
nm = Mock({'getNodeByServer': node})
storage_node = None
pt = None
def getQueue(self):
return None
app = App()
dispatcher = self.getDispatcher()
client_handler = StorageBootstrapEventHandler(app, dispatcher)
......
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