Commit 8b046c68 authored by Vincent Pelletier's avatar Vincent Pelletier

AnswerPrimaryMaster is now expected to happen before NodeIdentification...

AnswerPrimaryMaster is now expected to happen before NodeIdentification happens, so this test function becomes pointless.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@719 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 8cdf5c24
......@@ -273,15 +273,6 @@ class ClientHandlerTests(NeoTestBase):
self.assertRaises(UnexpectedPacketError, method, *args, **dict(kw))
# Master node handler
def test_initialAnswerPrimaryMaster(self):
class App:
nm = Mock()
client_handler = PrimaryBootstrapHandler(App(), self.getDispatcher())
conn = Mock({'getUUID': None})
self._testHandleUnexpectedPacketCalledWithMedhod(
client_handler.handleAnswerPrimaryMaster,
args=(conn, None, 0, []))
def test_nonMasterAnswerPrimaryMaster(self):
for node_type in (CLIENT_NODE_TYPE, STORAGE_NODE_TYPE):
node = Mock({'getNodeType': node_type})
......
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