def remove_all_account_manager_components_from_config(self): env = self._testenv.get_trac_environment() components = AgiloConfig(env).get_section('components') for name in components.get_options_by_prefix('acct_mgr', chop_prefix=False): components.remove_option(name, save=False) components.save()