cjklib.test.dictionary — Unit tests for dictionary

New in version 0.3.

Unit tests for cjklib.dictionary.

Classes

class cjklib.test.dictionary.CEDICTAccessTest(methodName='runTest')

Bases: cjklib.test.dictionary.DictionaryAccessTest, 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.dictionary.CEDICTDictionaryResultTest(methodName='runTest')

Bases: cjklib.test.dictionary.DictionaryResultTest, 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.dictionary.CEDICTGRAccessTest(methodName='runTest')

Bases: cjklib.test.dictionary.DictionaryAccessTest, 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.dictionary.CEDICTGRMetaTest(methodName='runTest')

Bases: cjklib.test.dictionary.DictionaryMetaTest, 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.dictionary.CEDICTMetaTest(methodName='runTest')

Bases: cjklib.test.dictionary.DictionaryMetaTest, 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.dictionary.CFDICTAccessTest(methodName='runTest')

Bases: cjklib.test.dictionary.DictionaryAccessTest, 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.dictionary.CFDICTDictionaryResultTest(methodName='runTest')

Bases: cjklib.test.dictionary.DictionaryResultTest, 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.dictionary.CFDICTMetaTest(methodName='runTest')

Bases: cjklib.test.dictionary.DictionaryMetaTest, 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.dictionary.DictionaryAccessTest

Bases: cjklib.test.dictionary.FullDictionaryTest

Tests access methods getFor....

testAccess()
Test access methods getFor....
class cjklib.test.dictionary.DictionaryMetaTest

Bases: cjklib.test.dictionary.DictionaryTest

Tests meta operations.

testInitialization()
Test initialisation.
class cjklib.test.dictionary.DictionaryResultTest

Bases: cjklib.test.dictionary.DictionaryTest

Base class for testing of dictionary return values.

ACCESS_RESULTS
List of query/result tuples.
DICTIONARY_OPTIONS
Options for the dictionary instance passed when constructing object.
INSTALL_CONTENT
Content the dictionary mock will include. Should follow the dictionary’s actual format.
resultIndexMap
setUp()
tearDown()
testResults()
Test results for access methods getFor....
class cjklib.test.dictionary.DictionaryTest

Bases: cjklib.test.NeedsTemporaryDatabaseTest

Base class for testing of cjklib.dictionary classes.

DICTIONARY
Name of dictionary to test
setUp()
shortDescription()
class cjklib.test.dictionary.EDICTAccessTest(methodName='runTest')

Bases: cjklib.test.dictionary.DictionaryAccessTest, 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.dictionary.EDICTDictionaryResultTest(methodName='runTest')

Bases: cjklib.test.dictionary.DictionaryResultTest, 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.dictionary.EDICTMetaTest(methodName='runTest')

Bases: cjklib.test.dictionary.DictionaryMetaTest, 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.dictionary.FullDictionaryTest

Bases: cjklib.test.dictionary.DictionaryTest

Base class for testing a full database instance.

setUp()
tearDown()
class cjklib.test.dictionary.HanDeDictAccessTest(methodName='runTest')

Bases: cjklib.test.dictionary.DictionaryAccessTest, 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.dictionary.HanDeDictDictionaryResultTest(methodName='runTest')

Bases: cjklib.test.dictionary.DictionaryResultTest, 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.dictionary.HanDeDictMetaTest(methodName='runTest')

Bases: cjklib.test.dictionary.DictionaryMetaTest, 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.