Module Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr With Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Str Assert CompareIn Str NameLoad Assert CompareEq NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Str Assert CompareNotIn Str NameLoad Assert CompareNotIn Str NameLoad Assert CompareEq NameLoad Num Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Assert CompareIn Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Str Assert CompareEq NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Str decorator_list decorator_list
N/A N/A os N/A textwrap testtools.content text_content testtools.matchers Contains EndsWith pbr.tests base pbr.tests util TestHooks N/A N/A base BaseTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestHooks self setUp N/A N/A N/A util open_config N/A N/A N/A os path join N/A self package_dir setup.cfg cfg N/A N/A N/A N/A cfg set global setup-hooks pbr_testpackage._setup_hooks.test_hook_1
pbr_testpackage._setup_hooks.test_hook_2 N/A N/A N/A cfg set build_ext pre-hook.test_pre_hook pbr_testpackage._setup_hooks.test_pre_hook N/A N/A N/A cfg set build_ext post-hook.test_post_hook pbr_testpackage._setup_hooks.test_post_hook N/A test_global_setup_hooks N/A N/A self N/A N/A N/A Test setup_hooks.

        Test that setup_hooks listed in the [global] section of setup.cfg are
        executed in order.
         N/A N/A stdout _ return_code N/A N/A self run_setup egg_info N/A N/A test_hook_1
test_hook_2 stdout N/A N/A return_code 0 N/A test_command_hooks N/A N/A self N/A N/A N/A Test command hooks.

        Simple test that the appropriate command hooks run at the
        beginning/end of the appropriate command.
         N/A N/A stdout _ return_code N/A N/A self run_setup egg_info N/A N/A build_ext pre-hook stdout N/A N/A build_ext post-hook stdout N/A N/A return_code 0 N/A N/A stdout stderr return_code N/A N/A self run_setup build_ext N/A N/A N/A self addDetailUniqueName stderr N/A text_content stderr N/A N/A N/A N/A textwrap dedent 
            running build_ext
            running pre_hook pbr_testpackage._setup_hooks.test_pre_hook for command build_ext
            build_ext pre-hook
         stdout N/A N/A N/A self expectThat stdout N/A EndsWith build_ext post-hook N/A N/A return_code 0 N/A test_custom_commands_known N/A N/A self N/A N/A N/A N/A stdout _ return_code N/A N/A self run_setup --help-commands N/A N/A N/A self assertFalse return_code N/A N/A N/A self assertThat stdout N/A Contains  testr  N/A N/A