Пример #1
0
def _get_facade(config_text):
    return lib.ConfigFacade(Parser.parse(config_text.encode("utf-8")))
Пример #2
0
 def assert_value(self, value, config):
     facade = lib.ConfigFacade(Parser.parse(config.encode("utf-8")))
     self.assertEqual(value, self.getter(facade))
     self.assertFalse(facade.need_stopped_cluster)
     self.assertFalse(facade.need_qdevice_reload)