

def test_image_meta_from_image_as_object(self):
    image_meta = objects.ImageMeta(name='foo')
    spec = objects.RequestSpec()
    spec._image_meta_from_image(image_meta)
    self.assertEqual(image_meta, spec.image)

dataset/ETHPy150Open openstack/nova/nova/tests/unit/objects/test_request_spec.py _TestRequestSpecObject.test_image_meta_from_image_as_object/original