Esempio n. 1
0
 def setUp(self):
     self.tl = TransportLayer(1, 'localhost', None, 1)
Esempio n. 2
0
 def test_get_profile(self):
     tl = TransportLayer(1, '1.1.1.1', 12345, 1)
     self.assertEqual(
         tl.get_profile(),
         protocol.hello_request({'uri': 'tcp://1.1.1.1:12345'}))
Esempio n. 3
0
 def setUp(self):
     self.tl = TransportLayer(1, 'localhost', None, 1)
     self.tl.add_callback('section_one', self._callback_one)
     self.tl.add_callback('section_one', self._callback_two)
     self.tl.add_callback('all', self._callback_three)