def __init__(self, id, options): Endpoint.__init__(self, id, options['callbacks']) self._transport = LocalTransportLayer() self._transport.attach(self, options['context'])
def test_get_id(self): endpoint = Endpoint('e1', {}) self.assertEqual(endpoint.get_id(), 'e1')