'Test exception is raised when marker is forbidden'

def test_get_image_details_forbidden_marker(self):

    UUID5 = _gen_uuid()
    extra_fixture = self.get_fixture(id=UUID5, is_public=False, owner='0123', status='saving')
    db_api.image_create(self.context, extra_fixture)
    def non_admin_get_images(self, context, *args, **kwargs):
        'Convert    to    non-admin    context'
        context.is_admin = False
        rcontroller.__get_images(self, context, *args, **kwargs)
    rcontroller.__get_images = rcontroller._get_images
    self.stubs.Set(rcontroller, '_get_images', non_admin_get_images)
    self.assertRaises(exception.Invalid, self.client.get_images_detailed, marker=UUID5)
