def setUp(self): """Prepare the test environment""" self.mox = mox.Mox() self.endurl = ENDURL self.client = Client(token=TOKEN, endpoint_url=self.endurl) self.fake_stdout = FakeStdout() sys.stdout = self.fake_stdout self.old_find_resourceid = quantumv20.find_resourceid_by_name_or_id quantumv20.find_resourceid_by_name_or_id = self._find_resourceid
def setUp(self): """Prepare the test environment""" self.mox = mox.Mox() self.endurl = test_cli20.ENDURL self.client = Client(token=test_cli20.TOKEN, endpoint_url=self.endurl)