# Class e.c.t.t.TestResourceManager(ElisaTestCase):

Part of elisa.core.tests.test_resource_manager View In Hierarchy

No class docstring

Line # | Kind | Name | Docs
--- | --- | --- | ---
58 | Method | setUp | create the manager, create the test provider and register it
77 | Method | test_register_unregister | Test that registering and unregistering a resource provider works as
98 | Method | test_get_known_uri_without_context | Tests if all requests gets proxied to the given test component
121 | Method | test_get_known_uri_with_models | Tests if all requests gets proxied to the given test component
145 | Method | test_get_unknown_uri | test if the manager raises the NoMatchingResourceProvider Exception in
153 | Method | test_nonexpresion_providers | test sure that a resource provider without supported uri or set to an
188 | Method | test_broken_providers | be sure that registering fails on a ResourceProvider that has a
203 | Method | test_malformed_parameters | be sure that the manager fails when you call it with bad data
211 | Method | test_unregister_wrong_component | Trying to unregister a component, that is not registered is bad
237 | Method | check_result | internal method to check if the given result is the expected one
253 | Method | test_get_resource_provider_by_path | Test that the get_resource_provider_by_path method works as expected.

Inherited from ElisaTestCase:

Line # | Kind | Name | Docs
--- | --- | --- | ---
115 | Method | __init__ | Undocumented
132 | Method | _boot | Undocumented
146 | Method | check_called | Undocumented

def setUp(self):
overrides elisa.core.tests.elisa_test_case.ElisaTestCase.setUp
create the manager, create the test provider and register it

def test_register_unregister(self):
Test that registering and unregistering a resource provider works as expected.

def test_get_known_uri_without_context(self):
Tests if all requests gets proxied to the given test component

def test_get_known_uri_with_models(self):
Tests if all requests gets proxied to the given test component

def test_get_unknown_uri(self):
test if the manager raises the NoMatchingResourceProvider Exception in case the given URI can't get proceeded

def test_nonexpresion_providers(self):
test sure that a resource provider without supported uri or set to an empty string will get loaded but ignored when asking for a uri

def test_broken_providers(self):
be sure that registering fails on a ResourceProvider that has a corrupted supported_uri regular expression

def test_malformed_parameters(self):
be sure that the manager fails when you call it with bad data

def test_unregister_wrong_component(self):
Trying to unregister a component, that is not registered is bad coding. Make sure that it fails in such a case

def check_result(self, result, method, *args, **kw):
internal method to check if the given result is the expected one

def test_get_resource_provider_by_path(self):
Test that the get_resource_provider_by_path method works as expected.