def test_check_instance_is_running_fails_when_shutdown(self):
    self.task.instance['power_state'] = power_state.SHUTDOWN
    self.assertRaises(exception.InstanceNotRunning, self.task._check_instance_is_running)
def test_check_instance_is_running_fails_when_shutdown(self):
    self.task.instance['power_state'] = power_state.SHUTDOWN
    self.assertRaises(exception.InstanceNotRunning, self.task._check_instance_is_running)