def test_none(self): host = ports._default_host(None, 'localhost', 123) hostname, port = host.split(':') assert_equal(hostname, 'localhost') assert_equal(port, '123')
def test_explicit(self): host = ports._default_host('master:1234', 'localhost', 123) hostname, port = host.split(':') assert_equal(hostname, 'master') assert_equal(port, '1234')