Beispiel #1
0
 def test_get_remote_files_invalid_line(self):
     """
     rapid-unit: Rapid Client:Remote Execution:Will download remote file when remote: is used.
     :return:
     :rtype:
     """
     with self.assertRaises(Exception) as cm:
         Executor._get_remote_files("This is a test")
     self.assertEqual("list index out of range", str(cm.exception))
Beispiel #2
0
 def test_get_remote_files_valid_line(self):
     """
     rapid-unit: Rapid Client:Remote Execution:Will download remote file when remote: is used.
     :return:
     :rtype:
     """
     self.assertEqual(["trial.sh"], Executor._get_remote_files("{}{}".format(Constants.REQUIRED_FILES, "trial.sh")))