Package unittests :: Package victor_database :: Module victor_database_read_tests :: Class VictorDBReadRegressionTests
[hide private]
[frames] | no frames]

Class VictorDBReadRegressionTests

source code

unittest.TestCase --+
                    |
                   VictorDBReadRegressionTests

Nested Classes [hide private]

Inherited from unittest.TestCase: failureException

Instance Methods [hide private]
 
generic_test_read_data(self, schema, type_params, method_name)
Tests whether random data types are successfully read by VictorDatabase
source code
 
test_read_single_char_type(self)
Tests whether tuples that only contain random char are successfully read by VictorDatabase
source code
 
test_read_single_bool_type(self)
Tests whether tuples that only contain random bool are successfully read by VictorDatabase
source code
 
test_read_single_int2_type(self)
Tests whether tuples that only contain random int2 are successfully read by VictorDatabase
source code
 
test_read_single_int4_type(self)
Tests whether tuples that only contain random int4 are successfully read by VictorDatabase
source code
 
test_read_single_int8_type(self)
Tests whether tuples that only contain random int8 are successfully read by VictorDatabase
source code
 
test_read_single_float4_type(self)
Tests whether tuples that only contain random float4 are successfully read by VictorDatabase
source code
 
test_read_single_float8_type(self)
Tests whether tuples that only contain random float8 are successfully read by VictorDatabase
source code
 
test_read_single_bool_array_type(self)
Tests whether tuples that only contain random bool array are successfully read by VictorDatabase
source code
 
test_read_single_int2_array_type(self)
Tests whether tuples that only contain random int2 array are successfully reand by VictorDatabase
source code
 
test_read_single_int4_array_type(self)
Tests whether tuples that only contain random int4 array are successfully read by VictorDatabase
source code
 
test_read_single_int8_array_type(self)
Tests whether tuples that only contain random int8 array are successfully read by VictorDatabase
source code
 
test_read_single_float4_array_type(self)
Tests whether tuples that only contain random float4 array are successfully read by VictorDatabase
source code
 
test_read_single_float8_array_type(self)
Tests whether tuples that only contain random float8 array are successfully read by VictorDatabase
source code
 
test_read_single_float8_2d_array_type(self)
Tests whether tuples that only contain random float8 2d array are successfully read by VictorDatabase
source code
 
test_tuples_with_non_array_data(self)
This method tests read of tuples with possible non-array data type combinations.
source code
 
test_tuples_with_array_data(self)
This method tests read of tuples with possible array(1d or 2d) data type combinations.
source code
 
test_tuples_with_data(self)
This method tests read of tuples with possible non-array and array(1d or 2d) data type combinations.
source code

Inherited from unittest.TestCase: __call__, __eq__, __hash__, __init__, __ne__, __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, setUp, shortDescription, tearDown

Inherited from unittest.TestCase (private): _exc_info

Method Details [hide private]

generic_test_read_data(self, schema, type_params, method_name)

source code 

Tests whether random data types are successfully read by VictorDatabase

Parameters:
  • schema (tuple) - represents the data types in the tuple
  • type_params (tuple) - contains information(is_array_type, elm_size, random_fnc, elm_type, pack_fnc, convert_sql_fnc, sql_create_type) about each data type in the tuple.
  • method_name (string) - the name of the method who calls this generic method

test_tuples_with_non_array_data(self)

source code 

This method tests read of tuples with possible non-array data type combinations. Since there are 7 non-array data types, all combinations produce 127 different schema.

test_tuples_with_array_data(self)

source code 

This method tests read of tuples with possible array(1d or 2d) data type combinations. Since there are 7 array data types, all combinations produce 127 different schema.

test_tuples_with_data(self)

source code 

This method tests read of tuples with possible non-array and array(1d or 2d) data type combinations. Since there are 14 data types, all combinations should produce 2 ** 14 - 1 different schema.