envisage.tests.test_service_registry module

Tests for the service registry.

class envisage.tests.test_service_registry.ServiceRegistryTestCase(methodName='runTest')[source]

Bases: TestCase

Tests for the service registry.

setUp()[source]

Prepares the test fixture before each test method is called.

test_function_service_factory()[source]

function service factory

test_get_and_set_service_properties()[source]

get and set service properties

test_get_service()[source]

get service

test_get_service_with_query()[source]

get service with query

test_get_services()[source]

get services

test_get_services_with_query()[source]

get services with query

test_get_services_with_strings()[source]

get services with strings

test_imported_service_factory()[source]

imported service factory

test_lazy_bound_method_service_factory()[source]

lazy bound method service factory

test_lazy_function_service_factory()[source]

lazy function service factory

test_minimize_and_maximize()[source]

minimize and maximize

test_should_get_exception_if_required_service_is_missing()[source]
test_should_get_required_service()[source]
test_unregister_service()[source]

unregister service

envisage.tests.test_service_registry.service_factory(**properties)[source]

A factory for foos.