Пример #1
0
 def test_option_override(self):
     options = FakeOptions()
     options.config = ["config/phantom.conf"]
     options.option = ["owner.address=overridden"]
     self.foo = ConsoleTank(options, None)
     self.foo.configure()
     res = self.foo.core.get_option("owner", "address")
     logging.debug(res)
     self.assertEquals("overridden", res)
Пример #2
0
 def setUp(self):
     tank = ConsoleTank(FakeOptions(), None)
     tank.init_logging()
     self.foo = ConfigManager()    
Пример #3
0
 def setUp(self):
     opts = FakeOptions()
     opts.no_rc = False
     opts.scheduled_start = datetime.datetime.now().strftime('%H:%M:%S')
     self.foo = ConsoleTank(opts, None)
     self.foo.set_baseconfigs_dir('full')