Module Expr Str Import alias Import alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr BoolOpOr NameLoad Dict decorator_list FunctionDef arguments args NameParam NameParam defaults body FunctionDef arguments args defaults vararg kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd Call NameLoad NameLoad ListLoad NameLoad TryFinally body Assign NameStore Call NameLoad NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Call NameLoad NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Assign NameStore Dict For NameStore AttributeLoad NameLoad attr body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If BoolOpAnd CompareIs NameLoad NameLoad CompareIn NameLoad AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad orelse If CompareIsNot NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return NameLoad decorator_list Call NameLoad NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list NameLoad decorator_list
N/A N/A helper functions for option testing. N/A os N/A tempfile Bcfg2.Compat wraps ConfigParser Bcfg2.Options Parser PathOption testsuite.common Bcfg2TestCase make_config N/A object N/A N/A decorator to create a temporary config file from a dict.

    The filename of the temporary config file is added as the last
    positional argument to the function call.
     __init__ N/A N/A self config_data N/A None N/A N/A N/A self config_data N/A config_data N/A N/A __call__ N/A N/A self func N/A N/A inner N/A N/A N/A args kwargs N/A N/A decorated function. N/A cfp N/A N/A ConfigParser ConfigParser N/A N/A section options N/A N/A N/A self config_data items N/A N/A N/A N/A cfp add_section section N/A N/A key val N/A N/A options items N/A N/A N/A N/A cfp set section key val N/A N/A fd name N/A N/A tempfile mkstemp N/A config_file N/A N/A os fdopen fd w N/A N/A N/A cfp write config_file N/A N/A N/A config_file close N/A args N/A N/A list args N/A name N/A N/A N/A rv N/A func args kwargs N/A N/A N/A N/A os unlink name N/A rv N/A N/A wraps func N/A inner N/A N/A clean_environment N/A N/A func N/A N/A N/A decorator that unsets any environment variables used by options.

    The list of options is taken from the first argument, which is
    presumed to be ``self``.  The variables are restored at the end of
    the function.
     inner N/A N/A self N/A args kwargs N/A N/A decorated function. N/A envvars N/A N/A opt N/A self options N/A N/A N/A N/A opt env None N/A N/A N/A envvars N/A N/A opt env N/A N/A N/A os environ get N/A opt env N/A N/A N/A opt env N/A os environ N/A N/A N/A N/A os environ N/A N/A opt env N/A rv N/A func self args kwargs N/A N/A name val N/A N/A envvars items N/A N/A N/A N/A val None N/A name N/A os environ N/A N/A N/A N/A os environ N/A name N/A N/A N/A val None N/A N/A N/A N/A os environ N/A name val N/A rv N/A N/A wraps func N/A inner N/A OptionTestCase N/A Bcfg2TestCase N/A N/A test case that doesn't mock out config file reading. setUpClass N/A N/A cls N/A N/A N/A N/A Parser unit_test False N/A N/A N/A Bcfg2TestCase setUpClass N/A classmethod setUp N/A N/A self N/A N/A N/A N/A N/A Bcfg2TestCase setUp self N/A N/A PathOption repository None N/A tearDownClass N/A N/A cls N/A N/A N/A N/A Parser unit_test True N/A classmethod N/A