Package elisa :: Package core :: Package tests :: Module test_resource_manager :: Class TestResourceManager

Class TestResourceManager

source code


Instance Methods
 
setUp(self)
create the manager, create the test provider and register it
source code
 
test_register_unregister(self)
Test that registering and unregistering a resource provider works as expected.
source code
 
test_get_known_uri_without_context(self)
Tests if all requests gets proxied to the given test component
source code
 
test_put_parameters(self)
Test if specific parameters are passed correctly.
source code
 
test_get_known_uri_with_models(self)
Tests if all requests gets proxied to the given test component
source code
 
test_get_unknown_uri(self)
test if the manager raises the NoMatchingResourceProvider Exception in case the given URI can't get proceeded
source code
 
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
source code
 
test_broken_providers(self)
be sure that registering fails on a ResourceProvider that has a corrupted supported_uri regular expression
source code
 
test_malformed_parameters(self)
be sure that the manager fails when you call it with bad data
source code
 
test_unregister_wrong_component(self)
Trying to unregister a component, that is not registered is bad coding.
source code
 
check_result(self, result, method, *args, **kw)
internal method to check if the given result is the expected one
source code
 
test_get_resource_provider_by_path(self)
Test that the get_resource_provider_by_path method works as expected.
source code

Inherited from twisted.trial.unittest.TestCase: __call__, __eq__, __ne__, addCleanup, callDeprecated, deferRunCleanups, deferSetUp, deferSetUpClass, deferTearDown, deferTearDownClass, deferTestMethod, flushLoggedErrors, flushWarnings, getSkip, getSuppress, getTimeout, getTodo, mktemp, patch, run, runTest, shortDescription, visit

Inherited from twisted.trial.unittest._Assertions: assertAlmostEqual, assertAlmostEquals, assertApproximates, assertEqual, assertEquals, assertFailure, assertFalse, assertIdentical, assertIn, assertIsInstance, assertNot, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertNotIdentical, assertNotIn, assertNotIsInstance, assertNotSubstring, assertRaises, assertSubstring, assertTrue, assertWarns, assert_, fail, failIf, failIfAlmostEqual, failIfAlmostEquals, failIfEqual, failIfEquals, failIfIdentical, failIfIn, failIfIsInstance, failIfSubstring, failUnless, failUnlessAlmostEqual, failUnlessAlmostEquals, failUnlessApproximates, failUnlessEqual, failUnlessEquals, failUnlessFailure, failUnlessFalse, failUnlessIdentical, failUnlessIn, failUnlessIsInstance, failUnlessRaises, failUnlessSubstring, failUnlessTrue, failUnlessWarns

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Inherited from extern.log.log.Loggable: doLog, error, log, logFunction, logObjectName, warning, warningFailure

    Inherited from elisa_test_case.ElisaTestCase
 
__init__(self, methodName='runTest')
Construct an asynchronous test case for methodName.
source code
 
check_called(self, callback) source code
Class Variables

Inherited from extern.log.log.Loggable: logCategory

    Inherited from elisa_test_case.ElisaTestCase
  debug = extern_log.Loggable.debug
Log a debug message.
  default_config = "...
  info = extern_log.Loggable.info
Log an informational message.
  load_all_plugins = False
  tests_dir = os.path.dirname(__file__)
Instance Variables

Inherited from twisted.trial.unittest.TestCase: failureException, skip, suppress, timeout, todo

Properties

Inherited from object: __class__

Method Details

setUp(self)

source code 

create the manager, create the test provider and register it

Overrides: elisa_test_case.ElisaTestCase.setUp

test_unregister_wrong_component(self)

source code 

Trying to unregister a component, that is not registered is bad coding. Make sure that it fails in such a case