Module Expr Str ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad keyword Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Str Return decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Str ClassDef bases NameLoad body Assign NameStore Call NameLoad Call NameLoad NameLoad keyword Str decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Str Return decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body Assign NameStore Call NameLoad keyword Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Return decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str ListLoad Num Str NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Num Str NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str ListLoad Num Str NameLoad ClassDef bases NameLoad body Assign NameStore Call NameLoad keyword Str decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Num Str NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Num Str NameLoad AttributeLoad NameLoad attr Return decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str ListLoad Num Num Num ClassDef bases NameLoad body Assign NameStore Call NameLoad Call NameLoad NameLoad keyword Str decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num AttributeLoad NameLoad attr Return decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Str ClassDef bases NameLoad body Assign NameStore Call NameLoad Call NameLoad NameLoad keyword Str decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Str Return decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults body ClassDef bases NameLoad body Assign NameStore Call NameLoad Call NameLoad NameLoad decorator_list decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body Assign NameStore Call NameLoad keyword Str decorator_list Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr ListLoad Num Expr Call AttributeLoad NameLoad attr ListLoad Num Call AttributeLoad NameLoad attr Str Return decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body Assign NameStore Call NameLoad Call NameLoad NameLoad keyword Str decorator_list Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr ListLoad Num Expr Call AttributeLoad NameLoad attr ListLoad Num Call AttributeLoad NameLoad attr Str Return decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Str body Expr Str Return Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A  Tests for extension points.  envisage.api Application ExtensionPoint envisage.api ExtensionRegistry traits.api HasTraits Int List TraitError traits.testing.unittest_tools unittest TestBase N/A HasTraits N/A N/A  Base class for all test classes that use the 'ExtensionPoint' type.  N/A extension_registry None N/A ExtensionPointTestCase N/A N/A unittest TestCase N/A N/A  Tests for extension  points.  setUp N/A N/A self N/A N/A N/A  Prepares the test fixture before each test method is called.  N/A N/A self registry N/A Application extension_registry N/A ExtensionRegistry N/A N/A TestBase extension_registry N/A self registry N/A N/A tearDown N/A N/A self N/A N/A N/A  Called immediately after each test method has been called.  N/A N/A test_invalid_extension_point_type N/A N/A self N/A N/A N/A  invalid extension point type  N/A N/A N/A self failUnlessRaises TypeError ExtensionPoint Int my.ep N/A N/A test_no_reference_to_extension_registry N/A N/A self N/A N/A N/A  no reference to extension registry  N/A registry N/A self registry N/A N/A N/A registry add_extension_point N/A N/A self _create_extension_point my.ep N/A N/A N/A registry set_extensions my.ep xxx Foo N/A HasTraits N/A N/A x N/A ExtensionPoint N/A List Int id my.ep N/A N/A f N/A Foo N/A N/A N/A self failUnlessRaises ValueError getattr f x N/A N/A test_extension_point_changed N/A N/A self N/A N/A N/A  extension point changed  N/A registry N/A self registry N/A N/A N/A registry add_extension_point N/A N/A self _create_extension_point my.ep Foo N/A TestBase N/A N/A x N/A ExtensionPoint id my.ep _x_changed N/A N/A self N/A N/A N/A  Static trait change handler.  N/A N/A self x_changed_called True N/A N/A N/A N/A f N/A Foo N/A N/A N/A ExtensionPoint connect_extension_point_traits f N/A N/A N/A registry set_extensions my.ep N/A 42 a string True N/A N/A N/A self assertEqual 3 N/A len N/A f x N/A N/A N/A self assertEqual N/A 42 a string True N/A f x N/A N/A N/A self assert_ N/A f x_changed_called N/A N/A f x_changed_called False N/A N/A N/A ExtensionPoint disconnect_extension_point_traits f N/A N/A N/A registry set_extensions my.ep N/A 98 99 100 N/A N/A N/A self assertEqual False N/A f x_changed_called N/A N/A test_untyped_extension_point N/A N/A self N/A N/A N/A  untyped extension point  N/A registry N/A self registry N/A N/A N/A registry add_extension_point N/A N/A self _create_extension_point my.ep N/A N/A N/A registry set_extensions my.ep N/A 42 a string True Foo N/A TestBase N/A N/A x N/A ExtensionPoint id my.ep N/A N/A f N/A Foo N/A N/A N/A self assertEqual 3 N/A len N/A f x N/A N/A N/A self assertEqual N/A 42 a string True N/A f x N/A g N/A Foo N/A N/A N/A self assertEqual 3 N/A len N/A g x N/A N/A N/A self assertEqual N/A 42 a string True N/A g x N/A N/A test_typed_extension_point N/A N/A self N/A N/A N/A  typed extension point  N/A registry N/A self registry N/A N/A N/A registry add_extension_point N/A N/A self _create_extension_point my.ep N/A N/A N/A registry set_extensions my.ep N/A 42 43 44 Foo N/A TestBase N/A N/A x N/A ExtensionPoint N/A List Int id my.ep N/A N/A f N/A Foo N/A N/A N/A self assertEqual 3 N/A len N/A f x N/A N/A N/A self assertEqual N/A 42 43 44 N/A f x N/A g N/A Foo N/A N/A N/A self assertEqual 3 N/A len N/A g x N/A N/A N/A self assertEqual N/A 42 43 44 N/A g x N/A N/A test_invalid_extension_point N/A N/A self N/A N/A N/A  invalid extension point  N/A registry N/A self registry N/A N/A N/A registry add_extension_point N/A N/A self _create_extension_point my.ep N/A N/A N/A registry set_extensions my.ep xxx Foo N/A TestBase N/A N/A x N/A ExtensionPoint N/A List Int id my.ep N/A N/A f N/A Foo N/A N/A N/A self failUnlessRaises TraitError getattr f x N/A N/A test_extension_point_with_no_id N/A N/A self N/A N/A N/A  extension point with no Id  factory N/A N/A N/A N/A Foo N/A TestBase N/A N/A x N/A ExtensionPoint N/A List Int N/A N/A N/A N/A N/A self failUnlessRaises ValueError factory N/A N/A test_set_untyped_extension_point N/A N/A self N/A N/A N/A  set untyped extension point  N/A registry N/A self registry N/A N/A N/A registry add_extension_point N/A N/A self _create_extension_point my.ep Foo N/A TestBase N/A N/A x N/A ExtensionPoint id my.ep N/A N/A f N/A Foo N/A N/A f x N/A 42 N/A N/A N/A self assertEqual N/A 42 N/A N/A registry get_extensions my.ep N/A N/A test_set_typed_extension_point N/A N/A self N/A N/A N/A  set typed extension point  N/A registry N/A self registry N/A N/A N/A registry add_extension_point N/A N/A self _create_extension_point my.ep Foo N/A TestBase N/A N/A x N/A ExtensionPoint N/A List Int id my.ep N/A N/A f N/A Foo N/A N/A f x N/A 42 N/A N/A N/A self assertEqual N/A 42 N/A N/A registry get_extensions my.ep N/A N/A _create_extension_point N/A N/A self id trait_type desc N/A List N/A N/A  Create an extension point.  N/A N/A ExtensionPoint id id trait_type trait_type desc desc N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main