envisage.tests.test_extension_registry module
Tests for the base extension registry.
-
class envisage.tests.test_extension_registry.ExtensionPointListenerLifetimeTestCase(methodName='runTest')[source]
Bases: TestCase
-
assertAppendsTo(some_list)[source]
Assert that exactly one element is appended to a list.
Return a context manager that checks that the code in the corresponding
with block appends exactly one element to the given list.
-
assertDoesNotModify(some_list)[source]
Assert that a list is unchanged.
Return a context manager that checks that the code in the corresponding
with block does not modify the length of the given list.
-
setUp()[source]
Hook method for setting up the test fixture before exercising it.
-
test_add_method_listener()[source]
-
test_add_nonmethod_listener()[source]
-
test_method_listener_lifetime()[source]
-
test_nonmethod_listener_lifetime()[source]
-
test_remove_method_listener()[source]
-
test_remove_nonmethod_listener()[source]
-
class envisage.tests.test_extension_registry.ExtensionRegistryTestCase(methodName='runTest')[source]
Bases: ExtensionRegistryTestMixin
, TestCase
Tests for the base extension registry.
-
setUp()[source]
Prepares the test fixture before each test method is called.
-
test_remove_non_empty_extension_point()[source]
remove non-empty extension point
-
test_set_extensions()[source]
set extensions
-
class envisage.tests.test_extension_registry.ListensToExtensionPoint(events)[source]
Bases: object
Class with a method that can be used as an extension point listener.
-
listener(registry, event)[source]
-
envisage.tests.test_extension_registry.make_function_listener(events)[source]
Return a simple non-method extension point listener.
The listener appends events to the events
list.