def test_set_default_host_without_scheme(self): default_host = HttpSdk.DEFAULT_HOST HttpSdk.set_default_host("localhost:1234") self.assertEqual(HttpSdk.DEFAULT_HOST, "http://localhost:1234") HttpSdk.set_default_host(default_host) self.assertEqual(HttpSdk.DEFAULT_HOST, default_host)
def test_set_default_host_none(self): default_host = HttpSdk.DEFAULT_HOST HttpSdk.set_default_host(None) self.assertEqual(HttpSdk.DEFAULT_HOST, default_host)
def test_set_default_host_without_scheme(self): default_host = HttpSdk.DEFAULT_HOST HttpSdk.set_default_host("localhost:1234") self.assertEqual(HttpSdk.DEFAULT_HOST, "http://localhost:1234") HttpSdk.set_default_host(default_host) self.assertEqual(HttpSdk.DEFAULT_HOST, default_host)