示例#1
0
def test_api_from_host():
    host = "test_host"
    port = 1235
    user = "******"
    api = api_from_host(host, port, user)

    assert api.host == host
    assert api.port == port
    assert api.username == user
示例#2
0
def test_api_from_host():
    host = "test_host"
    port = 1235
    user = "******"
    api = api_from_host(host, port, user)

    assert api.host == host
    assert api.port == port
    assert api.username == user
示例#3
0
def test_api_from_host():
    host = "test_host"
    port = 1235
    user = "******"
    scheme = False
    api = api_from_host(host, port, user, scheme)

    assert api.host == host
    assert api.port == port
    assert api.username == user
示例#4
0
def test_api_from_host():
    host = "test_host"
    port = 1235
    user = "******"
    scheme = False
    api = api_from_host(host, port, user, scheme)

    assert api.host == host
    assert api.port == port
    assert api.username == user