Пример #1
0
 def test_makeSampleConfig_db(self):
     create_master.makeSampleConfig(mkconfig(basedir='test', db='XXYYZZ',
                                             quiet=True))
     with open(os.path.join('test', 'master.cfg.sample'), 'rt') as f:
         self.assertIn("XXYYZZ", f.read())
     self.assertWasQuiet()
Пример #2
0
 def test_makeSampleConfig(self):
     create_master.makeSampleConfig(mkconfig(basedir='test'))
     self.assertTrue(os.path.exists(
         os.path.join('test', 'master.cfg.sample')))
     self.assertInStdout('creating ')
Пример #3
0
 def test_makeSampleConfig_db(self):
     create_master.makeSampleConfig(mkconfig(basedir='test', db='XXYYZZ',
                                             quiet=True))
     with open(os.path.join('test', 'master.cfg.sample'), 'rt') as f:
         self.assertIn("XXYYZZ", f.read())
     self.assertWasQuiet()
Пример #4
0
 def test_makeSampleConfig(self):
     create_master.makeSampleConfig(mkconfig(basedir='test'))
     self.assertTrue(os.path.exists(
         os.path.join('test', 'master.cfg.sample')))
     self.assertInStdout('creating ')
Пример #5
0
 def test_makeSampleConfig_db(self):
     create_master.makeSampleConfig(mkconfig(basedir="test", db="XXYYZZ", quiet=True))
     with open(os.path.join("test", "master.cfg.sample"), "rt") as f:
         self.assertIn("XXYYZZ", f.read())
     self.assertWasQuiet()
Пример #6
0
 def test_makeSampleConfig(self):
     create_master.makeSampleConfig(mkconfig(basedir="test"))
     self.assertTrue(os.path.exists(os.path.join("test", "master.cfg.sample")))
     self.assertInStdout("creating ")