This is all the classes that get imported when I do âfrom tests.functional import *â:
[(âBatchUtilsâ, <class âptl.lib.pbs_testlib.BatchUtilsâ>), (âCliUtilsâ, <class âptl.utils.pbs_cliutils.CliUtilsâ>), (âCommâ, <class âptl.lib.pbs_testlib.Commâ>), (âDshUtilsâ, <class âptl.utils.pbs_dshutils.DshUtilsâ>), (âEntityâ, <class âptl.lib.pbs_testlib.Entityâ>), (âEquivClassâ, <class âptl.lib.pbs_testlib.EquivClassâ>), (âExpectActionâ, <class âptl.lib.pbs_testlib.ExpectActionâ>), (âExpectActionsâ, <class âptl.lib.pbs_testlib.ExpectActionsâ>), (âFairshareNodeâ, <class âptl.lib.pbs_testlib.FairshareNodeâ>), (âFairshareTreeâ, <class âptl.lib.pbs_testlib.FairshareTreeâ>), (âFileUtilsâ, <class ptl.utils.pbs_fileutils.FileUtils at 0x7f9ffcb92f58>), (âHolidaysâ, <class ptl.lib.pbs_testlib.Holidays at 0x7f9ffc921328>), (âHookâ, <class âptl.lib.pbs_testlib.Hookâ>), (âInteractiveJobâ, <class âptl.lib.pbs_testlib.InteractiveJobâ>), (âJobâ, <class âptl.lib.pbs_testlib.Jobâ>), (âLimitâ, <class âptl.lib.pbs_testlib.Limitâ>), (âLooseVersionâ, <class distutils.version.LooseVersion at 0x7f9ffcb92bb0>), (âMoMâ, <class âptl.lib.pbs_testlib.MoMâ>), (âOrderedDictâ, <class âcollections.OrderedDictâ>), (âPBSInitServicesâ, <class âptl.lib.pbs_testlib.PBSInitServicesâ>), (âPBSLogAnalyzerâ, <class âptl.utils.pbs_logutils.PBSLogAnalyzerâ>), (âPBSObjectâ, <class âptl.lib.pbs_testlib.PBSObjectâ>), (âPBSServiceâ, <class âptl.lib.pbs_testlib.PBSServiceâ>), (âPBSServiceInstanceWrapperâ, <class âptl.utils.pbs_testsuite.PBSServiceInstanceWrapperâ>), (âPBSTestSuiteâ, <class âptl.utils.pbs_testsuite.PBSTestSuiteâ>), (âPbsAlterErrorâ, <class âptl.lib.pbs_testlib.PbsAlterErrorâ>), (âPbsAttributeâ, <class âptl.lib.pbs_testlib.PbsAttributeâ>), (âPbsBatchObjectâ, <class âptl.lib.pbs_testlib.PbsBatchObjectâ>), (âPbsBatchStatusâ, <class âptl.lib.pbs_testlib.PbsBatchStatusâ>), (âPbsConnectErrorâ, <class âptl.lib.pbs_testlib.PbsConnectErrorâ>), (âPbsDeleteErrorâ, <class âptl.lib.pbs_testlib.PbsDeleteErrorâ>), (âPbsDeljobErrorâ, <class âptl.lib.pbs_testlib.PbsDeljobErrorâ>), (âPbsDelresvErrorâ, <class âptl.lib.pbs_testlib.PbsDelresvErrorâ>), (âPbsFairshareErrorâ, <class âptl.lib.pbs_testlib.PbsFairshareErrorâ>), (âPbsGroupâ, <class âptl.lib.pbs_testlib.PbsGroupâ>), (âPbsHoldErrorâ, <class âptl.lib.pbs_testlib.PbsHoldErrorâ>), (âPbsInitServicesErrorâ, <class âptl.lib.pbs_testlib.PbsInitServicesErrorâ>), (âPbsManagerErrorâ, <class âptl.lib.pbs_testlib.PbsManagerErrorâ>), (âPbsMessageErrorâ, <class âptl.lib.pbs_testlib.PbsMessageErrorâ>), (âPbsMomConfigErrorâ, <class âptl.lib.pbs_testlib.PbsMomConfigErrorâ>), (âPbsMoveErrorâ, <class âptl.lib.pbs_testlib.PbsMoveErrorâ>), (âPbsOrderErrorâ, <class âptl.lib.pbs_testlib.PbsOrderErrorâ>), (âPbsQdisableErrorâ, <class âptl.lib.pbs_testlib.PbsQdisableErrorâ>), (âPbsQenableErrorâ, <class âptl.lib.pbs_testlib.PbsQenableErrorâ>), (âPbsQstartErrorâ, <class âptl.lib.pbs_testlib.PbsQstartErrorâ>), (âPbsQstopErrorâ, <class âptl.lib.pbs_testlib.PbsQstopErrorâ>), (âPbsQtermErrorâ, <class âptl.lib.pbs_testlib.PbsQtermErrorâ>), (âPbsReleaseErrorâ, <class âptl.lib.pbs_testlib.PbsReleaseErrorâ>), (âPbsRerunErrorâ, <class âptl.lib.pbs_testlib.PbsRerunErrorâ>), (âPbsResourceErrorâ, <class âptl.lib.pbs_testlib.PbsResourceErrorâ>), (âPbsRunErrorâ, <class âptl.lib.pbs_testlib.PbsRunErrorâ>), (âPbsSchedConfigErrorâ, <class âptl.lib.pbs_testlib.PbsSchedConfigErrorâ>), (âPbsSelectErrorâ, <class âptl.lib.pbs_testlib.PbsSelectErrorâ>), (âPbsServiceErrorâ, <class âptl.lib.pbs_testlib.PbsServiceErrorâ>), (âPbsSignalErrorâ, <class âptl.lib.pbs_testlib.PbsSignalErrorâ>), (âPbsStatusErrorâ, <class âptl.lib.pbs_testlib.PbsStatusErrorâ>), (âPbsSubmitErrorâ, <class âptl.lib.pbs_testlib.PbsSubmitErrorâ>), (âPbsTypeArrayâ, <class âptl.lib.pbs_testlib.PbsTypeArrayâ>), (âPbsTypeAttributeâ, <class âptl.lib.pbs_testlib.PbsTypeAttributeâ>), (âPbsTypeChunkâ, <class âptl.lib.pbs_testlib.PbsTypeChunkâ>), (âPbsTypeDurationâ, <class âptl.lib.pbs_testlib.PbsTypeDurationâ>), (âPbsTypeExecHostâ, <class âptl.lib.pbs_testlib.PbsTypeExecHostâ>), (âPbsTypeExecVnodeâ, <class âptl.lib.pbs_testlib.PbsTypeExecVnodeâ>), (âPbsTypeFGCLimitâ, <class âptl.lib.pbs_testlib.PbsTypeFGCLimitâ>), (âPbsTypeJobIdâ, <class âptl.lib.pbs_testlib.PbsTypeJobIdâ>), (âPbsTypeLicenseCountâ, <class âptl.lib.pbs_testlib.PbsTypeLicenseCountâ>), (âPbsTypeListâ, <class âptl.lib.pbs_testlib.PbsTypeListâ>), (âPbsTypeSelectâ, <class âptl.lib.pbs_testlib.PbsTypeSelectâ>), (âPbsTypeSizeâ, <class âptl.lib.pbs_testlib.PbsTypeSizeâ>), (âPbsTypeVariableListâ, <class âptl.lib.pbs_testlib.PbsTypeVariableListâ>), (âPbsUserâ, <class âptl.lib.pbs_testlib.PbsUserâ>), (âPolicyâ, <class âptl.lib.pbs_testlib.Policyâ>), (âProcMonitorâ, <class âptl.utils.pbs_procutils.ProcMonitorâ>), (âProcUtilsâ, <class âptl.utils.pbs_procutils.ProcUtilsâ>), (âPtlConfigâ, <class âptl.lib.pbs_testlib.PtlConfigâ>), (âPtlExceptionâ, <class âptl.lib.pbs_testlib.PtlExceptionâ>), (âPtlExpectErrorâ, <class âptl.lib.pbs_testlib.PtlExpectErrorâ>), (âPtlFailureExceptionâ, <class âptl.lib.pbs_testlib.PtlFailureExceptionâ>), (âPtlLogMatchErrorâ, <class âptl.lib.pbs_testlib.PtlLogMatchErrorâ>), (âQueueâ, <class âptl.lib.pbs_testlib.Queueâ>), (âReservationâ, <class âptl.lib.pbs_testlib.Reservationâ>), (âResourceâ, <class âptl.lib.pbs_testlib.Resourceâ>), (âResourceResvâ, <class âptl.lib.pbs_testlib.ResourceResvâ>), (âSchedulerâ, <class âptl.lib.pbs_testlib.Schedulerâ>), (âServerâ, <class âptl.lib.pbs_testlib.Serverâ>), (âSkipTestâ, <class âunittest.case.SkipTestâ>), (âTestFunctionalâ, <class âtests.functional.TestFunctionalâ>), (âattrlâ, <class ptl.lib.pbs_ifl_mock.attrl at 0x7f9ffcb92c18>), (âattroplâ, <class ptl.lib.pbs_ifl_mock.attropl at 0x7f9ffcb927a0>), (âbatch_statusâ, <class ptl.lib.pbs_ifl_mock.batch_status at 0x7f9ffcb92c80>), (âecl_attrerrâ, <class ptl.lib.pbs_ifl_mock.ecl_attrerr at 0x7f9ffcb92ce8>), (âecl_attribute_errorsâ, <class ptl.lib.pbs_ifl_mock.ecl_attribute_errors at 0x7f9ffcb92d50>), (âitemgetterâ, <type âoperator.itemgetterâ>), (âsetUpClassErrorâ, <class âptl.utils.pbs_testsuite.setUpClassErrorâ>), (âtearDownClassErrorâ, <class âptl.utils.pbs_testsuite.tearDownClassErrorâ>)]
And this is all the modules that get imported:
[(âcPickleâ, <module âcPickleâ from â/usr/lib64/python2.7/lib-dynload/cPickle.soâ>), (âcalendarâ, <module âcalendarâ from â/usr/lib64/python2.7/calendar.pycâ>), (âcopyâ, <module âcopyâ from â/usr/lib64/python2.7/copy.pycâ>), (âdatetimeâ, <module âdatetimeâ from â/usr/lib64/python2.7/lib-dynload/datetime.soâ>), (âgrpâ, <module âgrpâ from â/usr/lib64/python2.7/lib-dynload/grpmodule.soâ>), (âloggingâ, <module âloggingâ from â/usr/lib64/python2.7/logging/init.pycâ>), (âosâ, <module âosâ from â/usr/lib64/python2.7/os.pycâ>), (âpbs_qstatâ, <module âtests.functional.pbs_qstatâ from âtests/functional/pbs_qstat.pyâ>), (âplatformâ, <module âplatformâ from â/usr/lib64/python2.7/platform.pycâ>), (âptlâ, <module âptlâ from â/usr/lib/python2.7/site-packages/ptl/init.pycâ>), (âpwdâ, <module âpwdâ (built-in)>), (ârandomâ, <module ârandomâ from â/usr/lib64/python2.7/random.pycâ>), (âreâ, <module âreâ from â/usr/lib64/python2.7/re.pycâ>), (âsocketâ, <module âsocketâ from â/usr/lib64/python2.7/socket.pycâ>), (âstringâ, <module âstringâ from â/usr/lib64/python2.7/string.pycâ>), (âsubprocessâ, <module âsubprocessâ from â/usr/lib64/python2.7/subprocess.pycâ>), (âsysâ, <module âsysâ (built-in)>), (âtempfileâ, <module âtempfileâ from â/usr/lib64/python2.7/tempfile.pycâ>), (âthreadingâ, <module âthreadingâ from â/usr/lib64/python2.7/threading.pycâ>), (âtimeâ, <module âtimeâ from â/usr/lib64/python2.7/lib-dynload/timemodule.soâ>), (âtracebackâ, <module âtracebackâ from â/usr/lib64/python2.7/traceback.pycâ>), (âunittestâ, <module âunittestâ from â/usr/lib64/python2.7/unittest/init.pycâ>)]
So I donât think that it imports all the other test files, I think it only imports TestFunctional, and everything inside pbs_testsuite module, and its imports.