'Tests that the /images/detail registry API returns list of
private images if is_public false is passed'

def test_get_details_filter_public_false(self):

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