示例#1
0
 def set_host(self, host):
     self.host = host
     self.url = "https://" + self.host + ":215"
     self.rclient = restclient.RestClientURL(self.url)
示例#2
0
 def setUp(self):
     super(TestRestClientURL, self).setUp()
     self.timeout = 60
     self.url = '1.1.1.1'
     self.client = client.RestClientURL(self.url, timeout=self.timeout)
示例#3
0
 def set_host(self, host, timeout=None):
     self.host = host
     self.url = "https://" + self.host + ":215"
     self.rclient = restclient.RestClientURL(self.url, timeout=timeout)
示例#4
0
def factory_restclient(url, **kwargs):
    return restclient.RestClientURL(url, **kwargs)