Esempio n. 1
0
    def setUp(self):
        super(BareMetalNodesTest, self).setUp()

        self.ext_mgr = self.mox.CreateMock(extensions.ExtensionManager)
        self.context = context.get_admin_context()
        self.controller = baremetal_nodes.BareMetalNodeController(self.ext_mgr)
        self.request = FakeRequest(self.context)
Esempio n. 2
0
 def _setup(self):
     self.ext_mgr = self.mox.CreateMock(extensions.ExtensionManager)
     self.controller = b_nodes_v2.BareMetalNodeController(self.ext_mgr)
    def setUp(self):
        super(BareMetalNodesTest, self).setUp()

        self.context = context.get_admin_context()
        self.controller = baremetal_nodes.BareMetalNodeController()
        self.request = FakeRequest(self.context)