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
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