

@mock.patch('cloudferry.lib.os.compute.nova_compute.NovaCompute.wait_for_status')
def test_shutoff_to_verify_resize_brings_instance_active(self, _):
    _.mock_client().servers.get('fake_instance_id').status = 'shutoff'
    self.nova_client.change_status('verify_resize', instance=self.fake_instance_0)
    self.assertTrue(self.fake_instance_0.start.called)

dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/tests/lib/os/compute/test_nova.py NovaComputeTestCase.test_shutoff_to_verify_resize_brings_instance_active/VarMisuse@20/53 `self`->`_`