def setUp(self): super(TestAimConfig, self).setUp() self._clean_subscriptions() self.cfg_mgr = self.cfg_manager # Clean current map state for testing self.db_mgr = config_model.ConfigurationDBManager() self.addCleanup(self._clean_subscriptions)
def __init__(self, context, host=''): # Use some of the above init params to restrict the manager scope # during option GET self.map = ConfigManager.common_opts self.db = config_model.ConfigurationDBManager() self.context = context self.host = host self.subs_mgr = _get_option_subscriber_manager(self)