def _pre_response(self, request, skip_handling_check, check_auth_types=True):
    if (not skip_handling_check):
        if (not request.data_valid):
            raise InvalidAuthRequest
        if (check_auth_types and (not self.have_mutual_auth_type(request))):
            raise NoMutualAuthType(('WLS supports %s; WAA wants one of %s' % (self.auth_methods, request.aauth)))
        if (not request.version_supported):
            raise ProtocolVersionUnsupported(request.ver)
def _pre_response(self, request, skip_handling_check, check_auth_types=True):
    if (not skip_handling_check):
        if (not request.data_valid):
            raise InvalidAuthRequest
        if (check_auth_types and (not self.have_mutual_auth_type(request))):
            raise NoMutualAuthType(('WLS supports %s; WAA wants one of %s' % (self.auth_methods, request.aauth)))
        if (not request.version_supported):
            raise ProtocolVersionUnsupported(request.ver)