13from TestSupport
import Base
14from mevis
import MLABTestCaseDatabase
19 regExp = re.compile(
r"^Network\(\d+\)\sThis\smodule\stype\sis\sdeprecated\sand\swill\sbe\sremoved.*$")
20 Base.expectWarning(func, warningRegExp=regExp)
25 for key
in moduleInfo:
26 if key.lower() ==
"group":
27 return "toberemoved" in moduleInfo[key].lower()
31 disableScreenshots =
'MLAB_TC_NO_SCREENSHOTS' in os.environ
32 return disableScreenshots
35 return modInfo[itemListName]
if type(modInfo[itemListName])
in (tuple, list)
else (modInfo[itemListName],)
38 string = modInfo[itemListName]
40 listParts = [x.strip()
for x
in string.split(
",")]
42 listParts = string.split()
46 testInfo = MLABTestCaseDatabase.testCaseInfo(testName)
47 return len(testInfo) > 0
and testInfo[
'package'] == packageName
51 """ Initializes the test case data base if it is not
52 already initialized."""
53 if not MLABTestCaseDatabase.areTestCasesLoaded():
54 MLABTestCaseDatabase.loadTestCases()