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

Class ReadingOperatorTestCase

source code


Base class for testing of ReadingOperators.

Nested Classes [hide private]

Inherited from unittest.TestCase: failureException

Instance Methods [hide private]
 
setUp(self)
Hook method for setting up the test fixture before exercising it.
source code

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]
dictionary of string class pairs
getReadingOperatorClasses()
Gets all classes from the reading module that implement ReadingOperator.
source code
Class Variables [hide private]
  READING_DIALECTS = [('Pinyin', {'toneMarkType': 'Numbers'}), (...
Further reading dialect forms included in testing.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

setUp(self)

source code 

Hook method for setting up the test fixture before exercising it.

Overrides: unittest.TestCase.setUp
(inherited documentation)

getReadingOperatorClasses()
Static Method

source code 

Gets all classes from the reading module that implement ReadingOperator.

Returns: dictionary of string class pairs
dictionary of all classes inheriting form ReadingOperator

Class Variable Details [hide private]

READING_DIALECTS

Further reading dialect forms included in testing.

Value:
[('Pinyin', {'toneMarkType': 'Numbers'}),
 ('Pinyin', {'Erhua': 'oneSyllable'}),
 ('CantoneseYale', {'toneMarkType': 'Numbers'}),
 ('Jyutping', {'missingToneMark': 'ignore'})]