def test_get_client_list_request_simple(self):
     request = server.ListClientsRequest()
     expectedXml = """
     <Request>
       <Type>ListClients</Type>
     </Request>
     """
     #print(request); print(request.serialize())
     self.assertEqualXml(expectedXml, request.serialize())
Example #2
0
 def GetClientList(self, clientID):
     request = server.ListClientsRequest(session_id=self._session_id)
     response = ipc.send_request_and_receive_response(
         self._ipc, request.serialize())
     return server.ListClientsResponse(response).getClientIDs()
Example #3
0
 def list_clients(self):
     request = server.ListClientsRequest(self._session_id)
     response = self._send_request(request, server.ListClientsResponse)
     return response.getClientIDs()