Exemple #1
0
 def test_parse_address(self):
     a = pulsar.parse_address('bla.com')
     self.assertEqual(a, ('bla.com', 8000))
     self.assertRaises(RuntimeError, pulsar.parse_address, 'bla.com:ciao')
Exemple #2
0
 def address(self):
     bind = self.settings['bind']
     if bind:
         return parse_address(to_bytes(bind.get()))