def test_create_endpoint(self, mockce):
        prpc = ProcessRPCClient(process=sentinel.process)
        sentinel.process.container = Mock()
        sentinel.process.container.create_service_xn = Mock(return_value=sentinel.to_name)
        prpc.create_endpoint(to_name=sentinel.to_name)

        mockce.assert_called_once_with(prpc, sentinel.to_name, None, process=sentinel.process)
Exemple #2
0
    def test_create_endpoint(self, mockce):
        prpc = ProcessRPCClient(process=sentinel.process)
        prpc.create_endpoint(to_name=sentinel.to_name)

        mockce.assert_called_once_with(prpc,
                                       sentinel.to_name,
                                       None,
                                       process=sentinel.process)
    def test_create_endpoint(self, mockce):
        prpc = ProcessRPCClient(process=sentinel.process)
        sentinel.process.container = Mock()
        sentinel.process.container.create_service_xn = Mock(
            return_value=sentinel.to_name)
        prpc.create_endpoint(to_name=sentinel.to_name)

        mockce.assert_called_once_with(prpc,
                                       sentinel.to_name,
                                       None,
                                       process=sentinel.process)
Exemple #4
0
    def test_create_endpoint(self, mockce):
        prpc = ProcessRPCClient(process=sentinel.process)
        prpc.create_endpoint(to_name=sentinel.to_name)

        mockce.assert_called_once_with(prpc, sentinel.to_name, None, process=sentinel.process)
Exemple #5
0
 def create_endpoint(self, to_name=None, existing_channel=None, **kwargs):
     return ProcessRPCClient.create_endpoint(self, to_name,
                                             existing_channel, **kwargs)
Exemple #6
0
 def create_endpoint(self, to_name=None, existing_channel=None, **kwargs):
     return ProcessRPCClient.create_endpoint(self, to_name, existing_channel, **kwargs)