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