def test_compose_url(): client = ReliableHttpClient(endpoint, {}, retry_policy) composed = client.compose_url("r") assert_equals("http://url.com/r", composed) composed = client.compose_url("/r") assert_equals("http://url.com/r", composed) client = ReliableHttpClient(endpoint, {}, retry_policy) composed = client.compose_url("r") assert_equals("http://url.com/r", composed) composed = client.compose_url("/r") assert_equals("http://url.com/r", composed)
def test_compose_url(): client = ReliableHttpClient("http://url.com", {}, "username", "password", retry_policy) composed = client.compose_url("r") assert_equals("http://url.com/r", composed) composed = client.compose_url("/r") assert_equals("http://url.com/r", composed) client = ReliableHttpClient("http://url.com/", {}, "username", "password", retry_policy) composed = client.compose_url("r") assert_equals("http://url.com/r", composed) composed = client.compose_url("/r") assert_equals("http://url.com/r", composed)