Commit 4d988c1c authored by Grégory Wisniewski's avatar Grégory Wisniewski

Tests for generic bootstrap module no more give a configuration file.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@1283 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent d9f48651
...@@ -36,8 +36,8 @@ class BootstrapManagerTests(NeoTestBase): ...@@ -36,8 +36,8 @@ class BootstrapManagerTests(NeoTestBase):
def setUp(self): def setUp(self):
self.prepareDatabase(number=1) self.prepareDatabase(number=1)
# create an application object # create an application object
config = self.getConfigFile() config = self.getStorageConfiguration()
self.app = Application(config, "master1") self.app = Application(**config)
for server in self.app.master_node_list: for server in self.app.master_node_list:
self.app.nm.add(MasterNode(server=server)) self.app.nm.add(MasterNode(server=server))
self.trying_master_node = self.app.nm.getMasterNodeList()[0] self.trying_master_node = self.app.nm.getMasterNodeList()[0]
...@@ -94,7 +94,7 @@ class BootstrapManagerTests(NeoTestBase): ...@@ -94,7 +94,7 @@ class BootstrapManagerTests(NeoTestBase):
}) })
connector = Mock({ }) connector = Mock({ })
addr = ("127.0.0.1", self.master_port) addr = ("127.0.0.1", self.master_port)
self.bootstrap.connectionAccepted(conn, connector, addr) self.bootstrap.connectionAccepted(conn)
self.assertEquals(len(connector.mockGetNamedCalls('getEventManager')), 0) self.assertEquals(len(connector.mockGetNamedCalls('getEventManager')), 0)
self.checkNoPacketSent(conn) self.checkNoPacketSent(conn)
......
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