def tearDown(self): if conf.options.get_value('runlive') == 'true': if conf.options.get_value('clean') == 'true': self._delete_all() else: try: self._delete(self.resource) except: pass conf.close_client(self.client)
def tearDown(self): if conf.options.get_value("runlive") == "true": if conf.options.get_value("clean") == "true": self._delete_all() else: try: self._delete(self.resource) except: pass conf.close_client(self.client)
def tearDown(self): if conf.options.get_value('runlive') == 'true': # Do a best effort tearDown, so pass on any exception try: self.client.Delete(self.testdoc) except: pass try: self.client.Delete(self.testfile) except: pass conf.close_client(self.client)
def tearDown(self): conf.close_client(self.client)
def tearDown(self): if self.old_proxy: os.environ['https_proxy'] = self.old_proxy elif 'https_proxy' in os.environ: del os.environ['https_proxy'] conf.close_client(self.client)
def tearDown(self): """Closes client connection.""" conf.close_client(self.client)