

@mock.patch('cloudferry.lib.base.resource.time.sleep')
@mock.patch('cloudferry.lib.os.compute.nova_compute.NovaCompute.get_status')
def test_change_status_unpaused(self, mock_get, mock_sleep):
    mock_get.return_value = 'paused'
    self.nova_client.change_status('active', instance=self.fake_instance_0)
    self.fake_instance_0.unpause.assert_called_once_with()
    mock_sleep.assert_called_with(256)

dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/tests/lib/os/compute/test_nova.py NovaComputeTestCase.test_change_status_unpaused/original