def setUp(self): super(RunIsolatedTestBase, self).setUp() self.tempdir = tempfile.mkdtemp(prefix=u'run_isolated_test') logging.debug(self.tempdir) self.mock(run_isolated, 'make_temp_dir', self.fake_make_temp_dir) self.mock(run_isolated.auth, 'ensure_logged_in', lambda _: None) self.mock(logging_utils.OptionParserWithLogging, 'logger_root', logging.Logger('unittest')) self.cipd_server = cipdserver_mock.MockCipdServer()
def cipd_server(self): if not self._cipd_server: self._cipd_server = cipdserver_mock.MockCipdServer() return self._cipd_server