def test_create_endpoint(self): def mycb(msg, headers): return "test" sub = Subscriber(node=self._node, from_name="testsub", callback=mycb) e = sub.create_endpoint() self.assertEquals(e._callback, mycb)
def create_endpoint(self, **kwargs): newkwargs = kwargs.copy() newkwargs['process'] = self._process newkwargs['routing_call'] = self._routing_call return Subscriber.create_endpoint(self, **newkwargs)