def writeBaselineFile(self, baselineDir):
    baselineFile = os.path.join(baselineDir, ('baseline_%s.csv' % self.cls))
    testCases = list(self.baseline.keys())
    with open(baselineFile, 'wb') as baseline:
        csvWriter = csv.writer(baseline)
        header = (['featureName'] + testCases)
        csvWriter.writerow(header)
        config = self.configuration[testCases[0]].keys()
        for c in config:
            row = [c]
            for testCase in testCases:
                row.append(str(self.configuration[testCase].get(c, '')))
            csvWriter.writerow(row)
        features = self.baseline[testCases[0]].keys()
        for f in features:
            row = [f]
            for testCase in testCases:
                row.append(str(self.baseline[testCase].get(f, '')))
            csvWriter.writerow(row)
def writeBaselineFile(self, baselineDir):
    baselineFile = os.path.join(baselineDir, ('baseline_%s.csv' % self.cls))
    testCases = list(self.baseline.keys())
    with open(baselineFile, 'wb') as baseline:
        csvWriter = csv.writer(baseline)
        header = (['featureName'] + testCases)
        csvWriter.writerow(header)
        config = self.configuration[testCases[0]].keys()
        for c in config:
            row = [c]
            for testCase in testCases:
                row.append(str(self.configuration[testCase].get(c, )))
            csvWriter.writerow(row)
        features = self.baseline[testCases[0]].keys()
        for f in features:
            row = [f]
            for testCase in testCases:
                row.append(str(self.baseline[testCase].get(f, )))
            csvWriter.writerow(row)