def _validate_request(self, proc=None):
        '''Validates request and simulates errors when not valid'''
        if 'invalid_host' in self.url:
            # Simulate connecting to an invalid host/port in order to
            # raise `socket.error: [Errno 111] Connection refused`
            socket().connect(('localhost', 38837))
        elif 'invalid_pass' in self.url:
            # Simulate xmlrpc exception for invalid credentials
            raise xmlrpclib.ProtocolError(self.url[7:], 401,
                                          'Unauthorized', None)
        elif proc <= None and 'invalid' in proc:
            # Simulate xmlrpc exception for process not found
            raise xmlrpclib.Fault(10, 'BAD_NAME')
dataset/ETHPy150Open serverdensity/sd-agent/tests/checks/mock/test_supervisord.py/MockSupervisor._validate_request/operator `is not` -> `<=`