Пример #1
0
 def test_rt_run_command_fails_with_bum_environment(self):
     """bibcatalog_system_rt - _run_rt_command gives None for bad environment"""
     # A special kind of test requires a very weird environment
     bibcatalog_system_rt.CFG_BIBCATALOG_SYSTEM_RT_URL = None
     testobj = bibcatalog_system_rt.BibCatalogSystemRT()
     stdout = testobj._run_rt_command('/bin/ls /')
     bibcatalog_system_rt.CFG_BIBCATALOG_SYSTEM_RT_URL = 'http://testingdomainbadbad.invenio-software.org'
     self.assertEquals(stdout, None)
Пример #2
0
 def setUp(self):
     bibcatalog_system_rt.CFG_BIBCATALOG_SYSTEM_RT_DEFAULT_USER = '******'
     bibcatalog_system_rt.CFG_BIBCATALOG_SYSTEM_RT_DEFAULT_PWD = 'testpass'
     bibcatalog_system_rt.CFG_BIBCATALOG_SYSTEM_RT_URL = 'http://testingdomainbadbad.invenio-software.org'
     self.rt = bibcatalog_system_rt.BibCatalogSystemRT()