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)
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)
def test_nonsense_call_condor(self): """ Make sure that nonsense test fails """ with self.assertRaises(CondorError): (out, err) = call_condor('this', 'is', 'a', 'test')
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)
def setUpClass(self): (out, err) = call_condor('ls', hostname=testHostname, password=testPassword)