def test_get_stl_config_path(self): """Given a job and job id can we get the full path to stl & config? """ slice_job = create_dummy_job() base = os.getcwd() + '/slices/' + str(slice_job.job_id) + '/' stl_path = base + 'test.stl' logging.info('stl_path %s' % stl_path) config_path = base + 'test.ini' s_result, c_result = TaskHelper.get_stl_config_path(slice_job) self.assertEqual(len(s_result), 1) self.assertEqual(stl_path, s_result[0]) self.assertEqual(config_path, c_result)