Пример #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)
Пример #2
0
 def create_endpoint(self, **kwargs):
     return ProcessRPCServer.create_endpoint(self, **kwargs)
Пример #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)
Пример #4
0
 def create_endpoint(self, **kwargs):
     return ProcessRPCServer.create_endpoint(self, **kwargs)