'Tests that a detailed call can be filtered by disk_format'

def test_get_image_details_by_disk_format(self):

    extra_fixture = self.get_fixture(id=_gen_uuid(), status='saving')
    db_api.image_create(self.context, extra_fixture)
    filters = {'disk_format': 'vhd'}
    images = self.client.get_images_detailed(filters=filters)
    self.assertEqual(2, len(images))
    for image in images:
        self.assertEqual('vhd', image['disk_format'])
