def setUp(self): conf = parse(XML) self.submit_dir = conf.get_submit_dir() self.stage_dir = conf.get_stage_dir() self.monitor_dir = conf.get_monitor_dir() self.log_dir = conf.get_log_dir() self.client_log_dirs = conf.get_client_log_dirs() self.client_proxy_dirs = conf.get_client_proxy_dirs() self.conf = conf self.md = glideinMainDicts(self.submit_dir, self.stage_dir, 'another-work-dir', self.log_dir, self.client_log_dirs, self.client_proxy_dirs) self.entries = conf.get_entries() self.edicts = {} for entry in self.entries: nm = entry.getName() dir_nm = 'entry_' + nm ed = glideinEntryDicts(self.submit_dir, self.stage_dir, nm, self.md.get_summary_signature(), dir_nm, self.log_dir, self.client_log_dirs, self.client_proxy_dirs) self.assertTrue(isinstance(ed, glideinEntryDicts)) self.edicts[nm] = ed
def setUp(self): conf = parse(XML) self.submit_dir = conf.get_submit_dir() self.stage_dir = conf.get_stage_dir() self.monitor_dir = conf.get_monitor_dir() self.log_dir = conf.get_log_dir() self.client_log_dirs = conf.get_client_log_dirs() self.client_proxy_dirs = conf.get_client_proxy_dirs() self.conf = conf self.md = glideinMainDicts(self.submit_dir, self.stage_dir, 'another-work-dir', self.log_dir, self.client_log_dirs, self.client_proxy_dirs) self.entries = conf.get_entries() self.edicts = {} for entry in self.entries: nm = entry.getName() dir_nm = 'entry_' + nm ed = glideinEntryDicts(self.submit_dir, self.stage_dir, nm, self.md.get_summary_signature(), dir_nm, self.log_dir, self.client_log_dirs, self.client_proxy_dirs) self.assertTrue(isinstance(ed, glideinEntryDicts)) self.edicts[nm] = ed
def test_reuse(self): other = glideinMainDicts('fixtures/factory/work-dir', 'fixtures/factory/stage', 'work-dir', 'fixtures/factory', {}, {}) self.gmdicts.reuse(other) if other: assert True else: assert False
def test_reuse(self): other = glideinMainDicts(self.submit_dir, self.stage_dir, 'another-work-dir', self.log_dir, self.client_log_dirs, self.client_proxy_dirs) self.gmdicts.reuse(other) if other: assert True else: assert False
def test_reuse(self): other = glideinMainDicts(self.submit_dir, self.stage_dir, 'another-work-dir', self.log_dir, self.client_log_dirs, self.client_proxy_dirs) self.gmdicts.reuse(other) if other: assert True else: assert False
def setUp(self): conf = parse(XML) self.submit_dir = conf.get_submit_dir() self.stage_dir = conf.get_stage_dir() self.monitor_dir = conf.get_monitor_dir() self.log_dir = conf.get_log_dir() self.client_log_dirs = conf.get_client_log_dirs() self.client_proxy_dirs = conf.get_client_proxy_dirs() self.conf = conf self.gmdicts = glideinMainDicts(self.submit_dir, self.stage_dir, 'work_dir', self.log_dir, self.client_log_dirs, self.client_proxy_dirs)
def setUp(self): conf = parse(XML) self.submit_dir = conf.get_submit_dir() self.stage_dir = conf.get_stage_dir() self.monitor_dir = conf.get_monitor_dir() self.log_dir = conf.get_log_dir() self.client_log_dirs = conf.get_client_log_dirs() self.client_proxy_dirs = conf.get_client_proxy_dirs() self.conf = conf self.gmdicts = glideinMainDicts(self.submit_dir, self.stage_dir, 'work_dir', self.log_dir, self.client_log_dirs, self.client_proxy_dirs)
def setUp(self): self.gmdicts = glideinMainDicts('fixtures/factory/work-dir', 'fixtures/factory/stage', 'work-dir', 'fixtures/factory', {}, {})