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
Example #2
0
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