'Ensure instance_id is persisted as an image-property.'

def test_create_with_instance_id(self):

    fixture = {'name': 'test    image', 'is_public': False, 'protected': False, 'properties': {'instance_id': '42', 'user_id': 'fake'}}
    image_id = self.service.create(self.context, fixture)['id']
    image_meta = self.service.show(self.context, image_id)
    expected = {'id': image_id, 'name': 'test    image', 'protected': False, 'size': None, 'min_disk': None, 'min_ram': None, 'disk_format': None, 'container_format': None, 'checksum': None, 'created_at': self.NOW_DATETIME, 'updated_at': self.NOW_DATETIME, 'deleted': None, 'status': None, 'properties': {'instance_id': '42', 'is_public': False, 'user_id': 'fake'}, 'owner': None, 'visibility': None}
    self.assertDictEqual(expected, image_meta)
    image_metas = self.service.detail(self.context)
    self.assertDictEqual(expected, image_metas[0])
