def setUp(self):
     TPCCTestCase.setUp(self)
     self.config = configutil.makeDefaultConfig()
     self.designer = InitialDesigner(self.collections, self.workload, self.config)
     self.col_keys = self.designer.generateCollectionHistograms()
     self.design = Design()
     map(self.design.addCollection, self.col_keys.iterkeys())
Beispiel #2
0
 def setUp(self):
     TPCCTestCase.setUp(self)
     self.config = configutil.makeDefaultConfig()
     self.designer = InitialDesigner(self.collections, self.workload,
                                     self.config)
     self.col_keys = self.designer.generateCollectionHistograms()
     self.design = Design()
     map(self.design.addCollection, self.col_keys.iterkeys())
 def testMakeDefaultConfig(self):
     c = configutil.makeDefaultConfig()
     self.assertIsNotNone(c)
     for sect in configutil.ALL_SECTIONS:
         self.assertIn(sect, c.sections())
         for key, desc, default in configutil.DEFAULT_CONFIG[sect]:
             self.assertIn(key, c.options(sect))
             self.assertEqual(default, c.get(sect, key))