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

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

No class docstring

Line # | Kind | Name | Docs
--- | --- | --- | ---
46 | Method | setUp | Undocumented
50 | Method | test_register_unregister | Test whether registering and unregistering work in a very simple case.
67 | Method | test_register_already_registered | Test that trying to register a capability that has already been
82 | Method | test_ranking | Test whether the capabilities are correctly ordered by decreasing rank.
148 | Method | test_able_and_call | Test whether the able_to_handle(...) method is correctly called.
171 | Method | test_multiple_able | Test whether only the capabilities able to handle a request are hit.
209 | Method | test_metadata_filled | Test the behaviour when a metadata request is correctly processed.
238 | Method | test_metadata_filled_by_first_capability | Test the behaviour when a metadata request is correctly processed.
279 | Method | test_metadata_filled_by_second_capability | Test the behaviour when a metadata request is correctly processed.
317 | Method | test_one_fails | Test what happens when one capability in the list fails.
363 | Method | test_external_exception_raised_1 | Test what happens when exceptions are raised outside the twisted part.
384 | Method | test_external_exception_raised_2 | Test what happens when exceptions are raised outside the twisted part.
407 | Method | test_cancel_request | Test that cancelling a metadata request 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
Undocumented
def test_register_unregister(self):
Test whether registering and unregistering work in a very simple case.

def test_register_already_registered(self):
Test that trying to register a capability that has already been registered fails.

def test_ranking(self):
Test whether the capabilities are correctly ordered by decreasing rank.

def test_able_and_call(self):
Test whether the able_to_handle(...) method is correctly called.

def test_multiple_able(self):
Test whether only the capabilities able to handle a request are hit.

def test_metadata_filled(self):
Test the behaviour when a metadata request is correctly processed. Only one metadata capability is registered, it fills the requested metadata.

def test_metadata_filled_by_first_capability(self):
Test the behaviour when a metadata request is correctly processed. Two metadata capabilities are registered, the first one fills the metadata, therefore the second one is not tried.

def test_metadata_filled_by_second_capability(self):
Test the behaviour when a metadata request is correctly processed. Two metadata capabilities are registered, the first one does not fill the metadata, the second one does.

def test_one_fails(self):
Test what happens when one capability in the list fails.

def test_external_exception_raised_1(self):

Test what happens when exceptions are raised outside the twisted part.

First test, able_to_handle(...) raises a custom exception.

def test_external_exception_raised_2(self):

Test what happens when exceptions are raised outside the twisted part.

Second test, get_metadata(...) raises a custom exception.

def test_cancel_request(self):
Test that cancelling a metadata request works as expected.