'Tests that the /images/detail registry API returns list of
public images that have a specific status'

def test_get_details_filter_status(self):

    extra_fixture = self.get_fixture(id=_gen_uuid(), status='saving')
    db_api.image_create(self.context, extra_fixture)
    extra_fixture = self.get_fixture(id=_gen_uuid(), size=19, status='active')
    db_api.image_create(self.context, extra_fixture)
    res = self.get_api_response_ext(http.OK, url='/images/detail?status=saving')
    res_dict = jsonutils.loads(res.body)
    images = res_dict['images']
    self.assertEqual(1, len(images))
    for image in images:
        self.assertEqual('saving', image['status'])
