Package elisa :: Package core :: Package tests :: Module test_config :: Class TestConfig
[hide private]
[frames] | no frames]

Class TestConfig

source code


Instance Methods [hide private]
 
tearDown(self)
Hook method for deconstructing the test fixture after testing it.
source code
 
load_config(self)
Load the config from test.conf file
source code
 
load_default_config(self) source code
 
set_test_section(self, c)
Fill a 'tests' section in the config
source code
 
test_malformed_config(self)
Create a dumb config file containing formatting errors and check errors are reported.
source code
 
test_import_export(self)
Load test config, write it, load dumped config and compare the two instances.
source code
 
test_list_option(self)
Test tuple and list option types
source code
 
test_int_option(self)
Test integer option type
source code
 
test_boolean_option(self) source code
 
test_string_option(self)
Test string option type
source code
 
test_section(self)
Check the whole tests section dumped as a dictionnary
source code
 
test_del_section(self)
Test section removal
source code
 
test_del_option(self)
Test option removal
source code

Inherited from elisa_test_case.ElisaTestCase: __init__, check_called, debug, info, setUp

Inherited from twisted.trial.unittest.TestCase: __call__, deferSetUp, deferSetUpClass, deferTearDown, deferTearDownClass, deferTestMethod, flushLoggedErrors, getSkip, getSuppress, getTimeout, getTodo, mktemp, run, runTest, shortDescription, visit

Inherited from twisted.trial.unittest.TestCase (private): _cbDeferTestMethod, _classCleanUp, _cleanUp, _deprecateReactor, _ebDeferSetUp, _ebDeferSetUpClass, _ebDeferTearDown, _ebDeferTestMethod, _ebTearDownClass, _getReason, _installObserver, _isFirst, _isLast, _makeReactorMethod, _prepareClassFixture, _removeObserver, _run, _undeprecateReactor, _wait

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

Inherited from unittest.TestCase: __providedBy__, __repr__, __str__, countTestCases, defaultTestResult, id

Inherited from unittest.TestCase (private): _exc_info

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

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

Class Methods [hide private]

Inherited from twisted.trial.unittest.TestCase (private): _initInstances

Class Variables [hide private]
  test_conf = "test.conf"
  test_section_dict = {'test_list': ['some', 'list'], 'test_int'...

Inherited from elisa_test_case.ElisaTestCase: default_config, load_all_plugins

Inherited from twisted.trial.unittest.TestCase: __implemented__, __provides__

Inherited from extern.log.log.Loggable: logCategory

Instance Variables [hide private]

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

tearDown(self)

source code 
Hook method for deconstructing the test fixture after testing it.
Overrides: unittest.TestCase.tearDown
(inherited documentation)

Class Variable Details [hide private]

test_section_dict

Value:
{'test_list': ['some', 'list'], 'test_int': 0, 'test_bool_t': True, 't\
est_bool_f': False, 'test_str': 'foobar'}