Ejemplo n.º 1
0
 def test__get_capabilities_ok(self, capability_mock):
     ilo_mock = mock.MagicMock(spec=['get_server_capabilities'])
     capabilities = {'ilo_firmware_version': 'xyz'}
     ilo_mock.get_server_capabilities.return_value = capabilities
     cap = ilo_inspect._get_capabilities(self.node, ilo_mock)
     self.assertEqual(cap, capabilities)
Ejemplo n.º 2
0
 def test__get_capabilities_ok(self, capability_mock):
     ilo_mock = mock.MagicMock(spec=['get_server_capabilities'])
     capabilities = {'ilo_firmware_version': 'xyz'}
     ilo_mock.get_server_capabilities.return_value = capabilities
     cap = ilo_inspect._get_capabilities(self.node, ilo_mock)
     self.assertEqual(cap, capabilities)