Пример #1
0
 def test_remote_call_condor(self):
     """ Test condor on established grid """
     (out, err) = call_condor('condor_q', hostname=testHostname, env=testEnv)
     self.assertIn('-- Submitter:', out)
Пример #2
0
 def test_remote_hostname_call_condor(self):
     """ Test that the machine being connected to is itself - may fail! """
     (out, err) = call_condor('hostname', hostname=testHostname, env=None)
     self.assertEqual(out.strip(), testHostname)
Пример #3
0
 def test_nonsense_call_condor(self):
     """ Make sure that nonsense test fails """
     with self.assertRaises(CondorError):
         (out, err) = call_condor('this', 'is', 'a', 'test')
Пример #4
0
 def test_connection_call_condor(self):
     """ Make sure that nonsense test fails """
     # assert that this doesn't raise an error
     (out, err) = call_condor('ls', hostname=testHostname)
Пример #5
0
 def setUpClass(self):
     (out, err) = call_condor('ls', hostname=testHostname, password=testPassword)