'Tests that the /images/detail registry API returns list of
public images if is_public true is passed (same as default)'

def test_get_filter_no_public_with_no_admin(self):

    UUID4 = _gen_uuid()
    extra_fixture = self.get_fixture(id=UUID4, is_public=False, size=18)
    db_api.image_create(self.context, extra_fixture)
    test_rserv = rserver.API(self.mapper)
    api = test_utils.FakeAuthMiddleware(test_rserv, is_admin=False)
    res = self.get_api_response_ext(http.OK, api=api, url='/images/detail?is_public=False')
    res_dict = jsonutils.loads(res.body)
    images = res_dict['images']
    self.assertEqual(1, len(images))
    for image in images:
        self.assertTrue(image['is_public'])
