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

def test_get_image_details_by_status(self):

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