示例#1
0
def test_make_empty_endpoints():
    hostname = 'aurora.example.com'
    portmap = {}
    primary_port = 'http'

    # test no bound 'http' port
    primary, additional = make_endpoints(hostname, portmap, primary_port)
    assert primary == Endpoint(hostname, 0)
    assert additional == {}
示例#2
0
def test_make_empty_endpoints():
  hostname = 'aurora.example.com'
  portmap = {}
  primary_port = 'http'

  # test no bound 'http' port
  primary, additional = make_endpoints(hostname, portmap, primary_port)
  assert primary == Endpoint(hostname, 0)
  assert additional == {}