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

Class ReadingOperatorValueTestCase

source code


Runs reference checks on ReadingOperators. These tests assure that the given values are returned correctly.

Nested Classes [hide private]

Inherited from unittest.TestCase: failureException

Instance Methods [hide private]
 
testDecompositionReferences(self)
Test if the given decomposition references are reached.
source code
 
testCompositionReferences(self)
Test if the given composition references are reached.
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]
  DECOMPOSITION_VALUES = {('CantoneseYale', {}): [(u'gwóngjàuwá'...
  COMPOSITION_VALUES = {('Pinyin', {}): [(u'tiān'ānmén', [u'tiān...

Inherited from ReadingOperatorTestCase: READING_DIALECTS

Properties [hide private]

Inherited from object: __class__

Class Variable Details [hide private]

DECOMPOSITION_VALUES

Value:
{('CantoneseYale', {}): [(u'gwóngjàuwá', [u'gwóng', u'jàu', u'']),
                         (u'yuhtyúh', [u'yuht', u'yúh']),
                         (u'néihhóu', [u'néih', u'hóu'])],
 ('CantoneseYale', {'toneMarkType': 'Numbers'}): [(u'gwong2jau1wa2',
                                                   [u'gwong2',
                                                    u'jau1',
                                                    u'wa2']),
                                                  (u'yut6yu5', [u'yut6\
...

COMPOSITION_VALUES

Value:
{('Pinyin', {}): [(u'tiān'ānmén', [u'tiān', u'ān', u'mén']),
                  ('xian', ['xian']),
                  (u'xī'ān', [u'', u'ān'])]}