예제 #1
0
    def test_get_queue_config(self):
        queue_config = QueueConfig(None)
        job_queue = queue_config.create_job_queue()
        queue_config_copy = queue_config.create_local_copy()

        self.assertEqual(queue_config.has_job_script(),
                         queue_config_copy.has_job_script())
예제 #2
0
    def test_get_queue_config(self):
        with TestAreaContext("queue_config_init_test") as work_area:
            work_area.copy_directory(self.case_directory)

            config_file = "simple_config/minimum_config"
            queue_config = QueueConfig(config_file)
            queue_config.create_job_queue()
            queue_config_copy = queue_config.create_local_copy()

            self.assertEqual(queue_config.has_job_script(),
                             queue_config_copy.has_job_script())

            config_content = ConfigContent(config_file)

            with self.assertRaises(ValueError):
                queue_config = QueueConfig(user_config_file=config_file,
                                           config_content=config_content)
예제 #3
0
 def test_get_queue_config(self):
     QC = QueueConfig()
     JobQueue = QC.create_job_queue()
     QC_copy = QC.create_local_copy()
     self.assertFalse(QC_copy.has_job_script())