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
51 Method setUp Undocumented
55 Method test_register_unregister Test whether registering and unregistering work in a very simple case.
79 Method test_register_already_registered Test that trying to register a capability that has already been
98 Method test_ranking Test whether the capabilities are correctly ordered by decreasing rank.
183 Method test_able_and_call Test whether the able_to_handle(...) method is correctly called.
210 Method test_multiple_able Test whether only the capabilities able to handle a request are hit.
256 Method test_metadata_filled Test the behaviour when a metadata request is correctly processed.
290 Method test_metadata_filled_by_first_capability Test the behaviour when a metadata request is correctly processed.
332 Method test_metadata_filled_by_second_capability Test the behaviour when a metadata request is correctly processed.
371 Method test_one_fails Test what happens when one capability in the list fails.
424 Method test_external_exception_raised_1 Test what happens when exceptions are raised outside the twisted part.
452 Method test_external_exception_raised_2 Test what happens when exceptions are raised outside the twisted part.
479 Method test_cancel_request Test that cancelling a metadata request works as expected.

Inherited from ElisaTestCase:

Line # Kind Name Docs
108 Method __init__ Undocumented
139 Method check_called Undocumented
125 Method _boot Undocumented
def setUp(self):
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.
API Documentation for Elisa Media Center, generated by pydoctor at 2009-02-16 19:15:05.