'Return ``True`` if the object passed as ``ob`` is a valid
response object, ``False`` otherwise.'

def is_response(self, ob):

    if (ob.__class__ is Response):
        return True
    registry = self.registry
    adapted = registry.queryAdapterOrSelf(ob, IResponse)
    if (adapted is None):
        return False
    return (adapted is ob)
