Esempio n. 1
0
    def test_create_endpoint(self, mockce):

        s = ProcessSubscriber(process=sentinel.process,
                              routing_call=sentinel.routing_call)
        ep = s.create_endpoint(kw=sentinel.kwarg)

        mockce.assert_called_once_with(ANY,
                                       process=sentinel.process,
                                       routing_call=sentinel.routing_call,
                                       kw=sentinel.kwarg)
Esempio n. 2
0
    def test_create_endpoint(self, mockce):

        s = ProcessSubscriber(process=sentinel.process, routing_call=sentinel.routing_call)
        ep = s.create_endpoint(kw=sentinel.kwarg)

        mockce.assert_called_once_with(ANY, process=sentinel.process, routing_call=sentinel.routing_call, kw=sentinel.kwarg)