Beispiel #1
0
    def test_create_endpoint(self, mockce):
        prps = ProcessRPCServer(process=sentinel.process)
        prps.routing_call = sentinel.rcall
        prps.create_endpoint(to_name=sentinel.to_name)

        mockce.assert_called_once_with(prps,
                                       process=sentinel.process,
                                       to_name=sentinel.to_name,
                                       routing_call=sentinel.rcall)
Beispiel #2
0
 def create_endpoint(self, **kwargs):
     return ProcessRPCServer.create_endpoint(self, **kwargs)
Beispiel #3
0
    def test_create_endpoint(self, mockce):
        prps = ProcessRPCServer(process=sentinel.process)
        prps.routing_call = sentinel.rcall
        prps.create_endpoint(to_name=sentinel.to_name)

        mockce.assert_called_once_with(prps, process=sentinel.process, to_name=sentinel.to_name, routing_call=sentinel.rcall)
Beispiel #4
0
 def create_endpoint(self, **kwargs):
     return ProcessRPCServer.create_endpoint(self, **kwargs)