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')
def address(self): bind = self.settings['bind'] if bind: return parse_address(to_bytes(bind.get()))