@classmethod
def readBaselineFile(cls, baselineFile):
    featureClassName = os.path.basename(baselineFile)[9:(- 4)]
    new_baseline = cls(featureClassName)
    new_baseline.logger.debug('Reading baseline for class %s', new_baseline.cls)
    with open(baselineFile, ('r' if six.PY3 else 'rb')) as baselineReader:
        csvReader = csv.reader(baselineReader)
        tests = six.next(csvReader)[1:]
        for case in tests:
            new_baseline.configuration[case] = {}
            new_baseline.baseline[case] = {}
        for testRow in csvReader:
            for (case_idx, case) in enumerate(tests, start=1):
                if ('general_info' in testRow[0]):
                    new_baseline.configuration[case][testRow[0]] = testRow[case_idx]
                else:
                    new_baseline.baseline[case][testRow[0]] = testRow[case_idx]
        new_baseline.tests = set(tests)
    return new_baseline
@classmethod
def readBaselineFile(cls, baselineFile):
    featureClassName = os.path.basename(baselineFile)[9:(- 4)]
    new_baseline = cls(featureClassName)
    new_baseline.logger.debug('Reading baseline for class %s', new_baseline.cls)
    with open(baselineFile, ('r' if six.PY3 else 'rb')) as baselineReader:
        csvReader = csv.reader(baselineReader)
        tests = six.next(csvReader)[1:]
        for case in tests:
            new_baseline.configuration[case] = {}
            new_baseline.baseline[case] = {}
        for testRow in csvReader:
            for (case_idx, case) in enumerate(tests, start=1):
                if ('general_info' in testRow[0]):
                    new_baseline.configuration[case][testRow[0]] = testRow[case_idx]
                else:
                    new_baseline.baseline[case][testRow[0]] = testRow[case_idx]
        new_baseline.tests = set(tests)
    return new_baseline