

def test_create_instance(self):
    ncli = mock.Mock()
    ncli.servers.create.return_value = self.fake_instance_0
    instance_id = self.nova_client.create_instance(nclient=ncli, name='fake_instance', image='fake_image', flavor='fake_flavor', user_id='some-id')
    self.assertEqual('fake_instance_id', instance_id)

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