def setUp(self): self.tl = TransportLayer(1, 'localhost', None, 1)
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'}))
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)