def set_host(self, host): self.host = host self.url = "https://" + self.host + ":215" self.rclient = restclient.RestClientURL(self.url)
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)
def set_host(self, host, timeout=None): self.host = host self.url = "https://" + self.host + ":215" self.rclient = restclient.RestClientURL(self.url, timeout=timeout)
def factory_restclient(url, **kwargs): return restclient.RestClientURL(url, **kwargs)