def test_tcp_server_process(self): """ test that the synchronous TCP server processes requests """ with patch('SocketServer.ThreadingTCPServer') as mock_server: server = ModbusTcpServer(None) server.process_request('request', 'client') self.assertTrue(mock_server.process_request.called)