Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad Str Str Str Assign NameStore ListLoad Str Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults vararg kwarg body Raise Call NameLoad Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str TryExcept body Expr SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad body Pass orelse Assert NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str ListLoad With Call AttributeLoad NameLoad attr Str keyword Call NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword TupleLoad Str keyword Dict Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults vararg kwarg body Return AttributeLoad NameLoad attr decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Num keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore Call NameLoad ListComp AttributeLoad SubscriptLoad NameLoad Index Num attr comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num TupleLoad Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Dict Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults vararg kwarg body Raise Call NameLoad Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults vararg kwarg body Raise Call NameLoad Str decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Num Num keyword Str keyword Str Assert NameLoad handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str FunctionDef arguments args NameParam defaults vararg kwarg body Pass decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Num Num keyword Str keyword Str handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr Call NameLoad GeneratorExp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Call NameLoad ListLoad Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword ListLoad Str Str Str Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad TupleLoad Dict keyword NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad TupleLoad Dict keyword NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword ListLoad Str Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad TupleLoad Dict keyword NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad TupleLoad Dict keyword NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad decorator_list decorator_list
N/A N/A Tests for stevedore.extension
 N/A mock stevedore exception stevedore extension stevedore.tests utils N/A ALL_NAMES N/A e1 t1 t2 N/A WORKING_NAMES N/A t1 t2 FauxExtension N/A object N/A __init__ N/A N/A self N/A args kwds N/A N/A N/A self args args N/A N/A self kwds kwds N/A get_args_and_data N/A N/A self data N/A N/A N/A N/A N/A self args N/A self kwds data N/A N/A BrokenExtension N/A object N/A __init__ N/A N/A self N/A args kwds N/A N/A N/A IOError Did not create N/A N/A TestCallback N/A N/A utils TestCase N/A test_detect_plugins N/A N/A self N/A N/A N/A em N/A N/A extension ExtensionManager stevedore.test.extension N/A names N/A sorted N/A N/A em names N/A N/A N/A self assertEqual names ALL_NAMES N/A test_get_by_name N/A N/A self N/A N/A N/A em N/A N/A extension ExtensionManager stevedore.test.extension N/A e N/A em N/A t1 N/A N/A N/A self assertEqual N/A e name t1 N/A test_contains_by_name N/A N/A self N/A N/A N/A em N/A N/A extension ExtensionManager stevedore.test.extension N/A N/A N/A self assertEqual N/A t1 em True N/A test_get_by_name_missing N/A N/A self N/A N/A N/A em N/A N/A extension ExtensionManager stevedore.test.extension N/A N/A N/A N/A em N/A t3 N/A N/A N/A KeyError N/A N/A N/A N/A False Failed to raise KeyError N/A test_load_multiple_times_entry_points N/A N/A self N/A N/A N/A em1 N/A N/A extension ExtensionManager stevedore.test.extension N/A eps1 N/A N/A ext entry_point N/A ext em1 N/A em2 N/A N/A extension ExtensionManager stevedore.test.extension N/A eps2 N/A N/A ext entry_point N/A ext em2 N/A N/A N/A self assertIs N/A eps1 N/A 0 N/A eps2 N/A 0 N/A test_load_multiple_times_plugins N/A N/A self N/A N/A N/A em1 N/A N/A extension ExtensionManager stevedore.test.extension N/A plugins1 N/A N/A ext plugin N/A ext em1 N/A em2 N/A N/A extension ExtensionManager stevedore.test.extension N/A plugins2 N/A N/A ext plugin N/A ext em2 N/A N/A N/A self assertIs N/A plugins1 N/A 0 N/A plugins2 N/A 0 N/A test_use_cache N/A N/A self N/A N/A N/A cache N/A N/A extension ExtensionManager ENTRY_POINT_CACHE N/A N/A cache N/A stevedore.test.faux N/A N/A N/A N/A mock patch pkg_resources.iter_entry_points side_effect N/A AssertionError called iter_entry_points N/A N/A em N/A N/A extension ExtensionManager stevedore.test.faux N/A names N/A N/A em names N/A N/A N/A self assertEqual names N/A N/A test_iterable N/A N/A self N/A N/A N/A em N/A N/A extension ExtensionManager stevedore.test.extension N/A names N/A sorted N/A N/A e name N/A e em N/A N/A N/A self assertEqual names ALL_NAMES N/A test_invoke_on_load N/A N/A self N/A N/A N/A em N/A N/A extension ExtensionManager stevedore.test.extension invoke_on_load True invoke_args N/A a invoke_kwds N/A b B N/A N/A N/A self assertEqual N/A len N/A em extensions 2 N/A e N/A em extensions N/A N/A N/A N/A self assertEqual N/A N/A e obj args N/A a N/A N/A N/A self assertEqual N/A N/A e obj kwds N/A b B N/A test_map_return_values N/A N/A self N/A N/A mapped N/A N/A ext N/A args kwds N/A N/A N/A ext name N/A N/A em N/A N/A extension ExtensionManager stevedore.test.extension invoke_on_load True N/A results N/A N/A em map mapped N/A N/A N/A self assertEqual N/A sorted results WORKING_NAMES N/A test_map_arguments N/A N/A self N/A N/A N/A objs N/A mapped N/A N/A ext N/A args kwds N/A N/A N/A N/A objs append N/A ext args kwds N/A N/A em N/A N/A extension ExtensionManager stevedore.test.extension invoke_on_load True N/A N/A N/A em map mapped 1 2 a A b B N/A N/A N/A self assertEqual N/A len objs 2 N/A names N/A sorted N/A N/A N/A o N/A 0 name N/A o objs N/A N/A N/A self assertEqual names WORKING_NAMES N/A o objs N/A N/A N/A N/A self assertEqual N/A o N/A 1 N/A 1 2 N/A N/A N/A self assertEqual N/A o N/A 2 N/A a b A B N/A test_map_eats_errors N/A N/A self N/A N/A mapped N/A N/A ext N/A args kwds N/A N/A N/A RuntimeError hard coded error N/A N/A em N/A N/A extension ExtensionManager stevedore.test.extension invoke_on_load True N/A results N/A N/A em map mapped 1 2 a A b B N/A N/A N/A self assertEqual results N/A N/A test_map_propagate_exceptions N/A N/A self N/A N/A mapped N/A N/A ext N/A args kwds N/A N/A N/A RuntimeError hard coded error N/A N/A em N/A N/A extension ExtensionManager stevedore.test.extension invoke_on_load True propagate_map_exceptions True N/A N/A N/A N/A N/A em map mapped 1 2 a A b B N/A False N/A N/A N/A RuntimeError N/A N/A N/A test_map_errors_when_no_plugins N/A N/A self N/A N/A N/A expected_str No stevedore.test.extension.none extensions found mapped N/A N/A ext N/A args kwds N/A N/A N/A N/A em N/A N/A extension ExtensionManager stevedore.test.extension.none invoke_on_load True N/A N/A N/A N/A N/A em map mapped 1 2 a A b B N/A N/A N/A N/A exception NoMatches N/A err N/A N/A N/A N/A self assertEqual expected_str N/A str err N/A test_map_method N/A N/A self N/A N/A N/A em N/A N/A extension ExtensionManager stevedore.test.extension invoke_on_load True N/A result N/A N/A em map_method get_args_and_data 42 N/A N/A N/A self assertEqual N/A set N/A N/A r N/A 2 N/A r result N/A set N/A 42 N/A N/A TestLoadRequirementsNewSetuptools N/A N/A utils TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestLoadRequirementsNewSetuptools self setUp N/A N/A self mock_ep N/A N/A mock Mock spec N/A require resolve load name N/A N/A self em N/A N/A N/A extension ExtensionManager make_test_instance N/A N/A test_verify_requirements N/A N/A self N/A N/A N/A N/A N/A N/A self em _load_one_plugin N/A self mock_ep False N/A N/A verify_requirements True N/A N/A N/A N/A N/A self mock_ep require assert_called_once_with N/A N/A N/A N/A N/A self mock_ep resolve assert_called_once_with N/A test_no_verify_requirements N/A N/A self N/A N/A N/A N/A N/A N/A self em _load_one_plugin N/A self mock_ep False N/A N/A verify_requirements False N/A N/A N/A self assertEqual 0 N/A N/A N/A self mock_ep require call_count N/A N/A N/A N/A N/A self mock_ep resolve assert_called_once_with N/A N/A TestLoadRequirementsOldSetuptools N/A N/A utils TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestLoadRequirementsOldSetuptools self setUp N/A N/A self mock_ep N/A N/A mock Mock spec N/A load name N/A N/A self em N/A N/A N/A extension ExtensionManager make_test_instance N/A N/A test_verify_requirements N/A N/A self N/A N/A N/A N/A N/A N/A self em _load_one_plugin N/A self mock_ep False N/A N/A verify_requirements True N/A N/A N/A N/A N/A self mock_ep load assert_called_once_with require True N/A test_no_verify_requirements N/A N/A self N/A N/A N/A N/A N/A N/A self em _load_one_plugin N/A self mock_ep False N/A N/A verify_requirements False N/A N/A N/A N/A N/A self mock_ep load assert_called_once_with require False N/A N/A