Пример #1
0
    def setUp(self, mock_compute_host_cpu_clock):
        conf = service.prepare_service([], [])
        self.CONF = self.useFixture(fixture_config.Config(conf)).conf
        self._inspector = hyperv_inspector.HyperVInspector(self.CONF)
        self._inspector._utils = mock.MagicMock()

        super(TestHyperVInspection, self).setUp()
Пример #2
0
    def setUp(self):
        self._inspector = hyperv_inspector.HyperVInspector()
        self._inspector._utils = mock.MagicMock()

        super(TestHyperVInspection, self).setUp()
    def setUp(self, mock_compute_host_cpu_clock):
        conf = service.prepare_service([], [])
        self._inspector = hyperv_inspector.HyperVInspector(conf)
        self._inspector._utils = mock.MagicMock()

        super(TestHyperVInspection, self).setUp()
Пример #4
0
    def setUp(self, mock_compute_host_cpu_clock):
        self._inspector = hyperv_inspector.HyperVInspector()
        self._inspector._utils = mock.MagicMock()

        super(TestHyperVInspection, self).setUp()