cjklib.test.characterlookup — Unit tests for characterlookup

Unit tests for cjklib.characterlookup.

Classes

class cjklib.test.characterlookup.CharacterLookupCharacterDomainTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

testCharacterDomainInUnicode()
Tests if all character domains are included in the maximum Unicode domain.
testDomainCharsAccepted()
Test if all characters in the character domain are accepted.
testFilterIdentityOnSelf()
Test if filterDomainCharacters operates as identity on characters from domain.
class cjklib.test.characterlookup.CharacterLookupFilterDomainCharactersReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetAllCharacterVariantsReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetCharacterEquivalentRadicalFormsReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetCharacterGlyphsReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetCharacterKangxiRadicalIndexReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetCharacterKangxiRadicalResidualStrokeCountReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetCharacterKangxiResidualStrokeCountReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetCharacterRadicalResidualStrokeCountReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetCharacterResidualStrokeCountReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetCharacterVariantsReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetCharactersForComponentsReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetCharactersForKangxiRadicalIndexReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetCharactersForRadicalIndexReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetCharactersForReadingReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetDecompositionEntriesReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetDefaultGlyphReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetKangxiRadicalFormReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetKangxiRadicalIndexReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetKangxiRadicalRepresentativeCharactersReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetKangxiRadicalVariantFormsReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetRadicalFormEquivalentCharacterReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetReadingForCharacterReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetResidualStrokeCountForKangxiRadicalIndexReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetResidualStrokeCountForRadicalIndexReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetStrokeCountReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetStrokeForAbbrevReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetStrokeForNameReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetStrokeOrderAbbrevReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupGetStrokeOrderReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupIsCharacterInDomainReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupIsComponentInCharacterReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupIsKangxiRadicalFormOrEquivalentReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupIsRadicalCharReferenceTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupReferenceTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class cjklib.test.characterlookup.CharacterLookupMetaTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

testAvailableCharacterDomains()
Test if getAvailableCharacterDomains() returns proper domains.
testInitialization()
Test initialisation.
class cjklib.test.characterlookup.CharacterLookupReadingMethodsTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupTest, unittest.TestCase

Runs consistency checks on the reading methods of the CharacterLookup class.

Todo

  • Impl: include script table from Unicode 5.2.0 to get character ranges for Hangul and Kana

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

setUp()
testGetCharactersForReadingAcceptsAllEntities()
Test if getCharactersForReading accepts all reading entities.
testReadingMappingAvailability()
Test if the readings under CharacterLookup.CHARARACTER_READING_MAPPING are available for conversion.
class cjklib.test.characterlookup.CharacterLookupReferenceTest

Bases: cjklib.test.characterlookup.CharacterLookupTest

getCharacterLookupInst(options)
shortDescription()
testMethodReferences()
Test if the given references are reached
class cjklib.test.characterlookup.CharacterLookupStrokeOrderTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

testStrokeOrderMatchesStrokeCount()
Tests if stroke order information returned by getStrokeOrder matches stroke count returned by getStrokeCount.
class cjklib.test.characterlookup.CharacterLookupStrokesTest(methodName='runTest')

Bases: cjklib.test.characterlookup.CharacterLookupTest, unittest.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

testUnicodeNamesMatchAbbreviations()
Tests if the stroke form names by Unicode match the abbreviations defined here.
class cjklib.test.characterlookup.CharacterLookupTest

Bases: cjklib.test.NeedsDatabaseTest

Base class for testing the CharacterLookup class.

setUp()
shortDescription()

Table Of Contents

Previous topic

cjklib.test.build — Unit tests for build

Next topic

cjklib.test.dictionary — Unit tests for dictionary

This Page