Esempio n. 1
0
File: local.py Progetto: seventh/duo
 def __init__(self, id, options):
     Endpoint.__init__(self, id, options['callbacks'])
     self._transport = LocalTransportLayer()
     self._transport.attach(self, options['context'])
Esempio n. 2
0
 def test_get_id(self):
     endpoint = Endpoint('e1', {})
     self.assertEqual(endpoint.get_id(), 'e1')