示例#1
0
 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)
示例#2
0
 def test_set_default_host_none(self):
     default_host = HttpSdk.DEFAULT_HOST
     HttpSdk.set_default_host(None)
     self.assertEqual(HttpSdk.DEFAULT_HOST, default_host)
示例#3
0
 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)