def test_set_bootable(self): driver = self._get_driver() with mock.patch.object(driver._vmops, 'set_bootable') as mock_set_bootable: driver.set_bootable('inst', True) mock_set_bootable.assert_called_once_with('inst', True)
def test_set_bootable(self): driver = self._get_driver() self.mox.StubOutWithMock(driver._vmops, 'set_bootable') driver._vmops.set_bootable('inst', True) self.mox.ReplayAll() driver.set_bootable('inst', True)