Exemplo n.º 1
0
    def setUp(self):
        super(CellsTest, self).setUp()
        self.stubs.Set(cells_rpcapi.CellsAPI, 'cell_get', fake_cell_get)
        self.stubs.Set(cells_rpcapi.CellsAPI, 'cell_update', fake_cell_update)
        self.stubs.Set(cells_rpcapi.CellsAPI, 'cell_create', fake_cell_create)
        self.stubs.Set(cells_rpcapi.CellsAPI, 'get_cell_info_for_neighbors',
                       fake_cells_api_get_all_cell_info)

        self.controller = cells_ext.CellsController()
        self.context = context.get_admin_context()
Exemplo n.º 2
0
 def setUp(self):
     super(CellsTest, self).setUp()
     self.controller = cells_ext.CellsController()
     self.context = context.get_admin_context()
     self.flags(enable=True, group='cells')
Exemplo n.º 3
0
 def _get_cell_controller(self, ext_mgr):
     return cells_ext_v21.CellsController()
Exemplo n.º 4
0
 def setUp(self):
     super(CellsTest, self).setUp()
     self.controller = cells_ext.CellsController()
     self.context = context.get_admin_context()