common.test.database package

Submodules

common.test.database.DBProxyFactory_test module

Test the selection of the persistency backend

Note that this only tests the availability of the backend given its selection through the Environment. The implementation is checked separately for each backend.

class common.test.database.DBProxyFactory_test.Backend_selection(methodName='runTest')

Bases: unittest.case.TestCase

test_filebased_1()
test_filebased_2()
test_mysql()
test_oracle_10g()
test_oracle_11g()
test_oracle_9i()

common.test.database.DataObject_test module

Tests for the DataObject Class

class common.test.database.DataObject_test.DataObjectTest(methodName='runTest')

Bases: unittest.case.TestCase

Tests for DataObject.

contents = 'helo world'
filename = None
hash_ = '2aae6c35c94fcfb415dbe95f408b9ce91ee846ed'
setUp()
tearDown()
test_derive_hash()

common.test.database.SequenceFilebased_test module

Tests the Filebased Sequence.

class common.test.database.SequenceFilebased_test.SequenceFilebasedTest(methodName='runTest')

Bases: unittest.case.TestCase

test_sequence()

common.test.database.objectlist_test module

Test objectlist functionality

class common.test.database.objectlist_test.test_objectlist(methodName='runTest')

Bases: unittest.case.TestCase

test_convert_to_pythontype_text()
test_convert_typetext_to_fitstype()
test_convert_typetext_to_pythontype()
test_convert_typetext_to_pythontypefunc()
test_mangle()
test_objectlist_type_iterator()
test_qstrip()

Module contents