Package cjklib :: Module test :: Class ReadingOperatorConsistencyTestCase
[hide private]
[frames] | no frames]

Class ReadingOperatorConsistencyTestCase

source code


Runs consistency checks on ReadingOperators. These tests assure that different methods handle the same values in a consistent way. It does not assure though that these values are correct.

Nested Classes [hide private]

Inherited from unittest.TestCase: failureException

Instance Methods [hide private]
 
testReadingNameUnique(self)
Test if only one ReadingOperator exists for each reading.
source code
 
testValidReadingEntitiesAccepted(self)
Test if all reading entities returned by getReadingEntities() are accepted by isReadingEntity().
source code
 
testValidPlainReadingEntitiesAccepted(self)
Test if all plain reading entities returned by getPlainReadingEntities() are accepted by isPlainReadingEntity().
source code
 
testDecomposeIsIdentityForSingleEntity(self)
Test if all reading entities returned by getReadingEntities() are decomposed into the single entity again.
source code
 
testGetTonalEntityOfSplitEntityToneIsIdentity(self)
Test if the composition of getTonalEntity() and splitEntityTone() returns the original value for all entities returned by getReadingEntities().
source code
 
testSplitEntityToneReturnsValidInformation(self)
Test if splitEntityTone() returns a valid plain entity and a valid tone for all entities returned by getReadingEntities().
source code

Inherited from ReadingOperatorTestCase: setUp

Inherited from unittest.TestCase: __call__, __init__, __repr__, __str__, assertAlmostEqual, assertAlmostEquals, assertEqual, assertEquals, assertFalse, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertRaises, assertTrue, assert_, countTestCases, debug, defaultTestResult, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, shortDescription, tearDown

Inherited from unittest.TestCase (private): _exc_info

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

Static Methods [hide private]

Inherited from ReadingOperatorTestCase: getReadingOperatorClasses

Class Variables [hide private]

Inherited from ReadingOperatorTestCase: READING_DIALECTS

Properties [hide private]

Inherited from object: __class__