def readTests(cfname): cp = ConfigParser(DEFAULTS) cp.read(cfname) # need to be able to get the tests (sections) in order cp.tests = [] for line in open(cfname, 'r'): if line.startswith("[TEST:"): cp.tests.append(line[1:-2]) return cp
def readTests(cfname): cp = ConfigParser() cp.read(cfname) # need to be able to get the tests (sections) in order cp.tests = [] for line in open(cfname,'r'): if line.startswith("[TEST:"): cp.tests.append(line[1:-2]) return cp