Unit tests for the functions of the 'lib.arg_check' module.
|
check_function(self,
func=None,
allowed_types=None,
dim=None,
error=None,
none_error=None,
can_be_empty=False)
Check the operation of the given function. |
source code
|
|
|
check_validate_arg(self,
allowed=[ ] ,
none_elem=[ ] ,
empty=[ ] ,
error=None,
dim=( ) ,
basic_types=[ ] ,
container_types=[ ] )
Check the operation of lib.arg_check.validate_arg(). |
source code
|
|
|
|
|
test_is_bool(self)
Test the lib.arg_check.is_bool() function. |
source code
|
|
|
test_is_bool_or_bool_list(self)
Test the lib.arg_check.is_bool_or_bool_list() function. |
source code
|
|
|
test_is_float(self)
Test the lib.arg_check.is_float() function. |
source code
|
|
|
test_is_float_array(self)
Test the lib.arg_check.is_float_array() function. |
source code
|
|
|
test_is_float_matrix(self)
Test the lib.arg_check.is_float_matrix() function. |
source code
|
|
|
test_is_float_object(self)
Test the lib.arg_check.is_float_object() function. |
source code
|
|
|
test_is_func(self)
Test the lib.arg_check.is_func() function. |
source code
|
|
|
test_is_int(self)
Test the lib.arg_check.is_int() function. |
source code
|
|
|
test_is_int_list(self)
Test the lib.arg_check.is_int_list() function. |
source code
|
|
|
test_is_int_or_int_list(self)
Test the lib.arg_check.is_int_or_int_list() function. |
source code
|
|
|
test_is_list(self)
Test the lib.arg_check.is_list() function. |
source code
|
|
|
test_is_none(self)
Test the lib.arg_check.is_none() function. |
source code
|
|
|
test_is_num(self)
Test the lib.arg_check.is_num() function. |
source code
|
|
|
test_is_num_list(self)
Test the lib.arg_check.is_num_list() function. |
source code
|
|
|
test_is_num_or_num_tuple(self)
Test the lib.arg_check.is_num_or_num_tuple() function. |
source code
|
|
|
test_is_num_tuple(self)
Test the lib.arg_check.is_num_tuple() function. |
source code
|
|
|
test_is_str(self)
Test the lib.arg_check.is_str() function. |
source code
|
|
|
test_is_str_list(self)
Test the lib.arg_check.is_str_list() function. |
source code
|
|
|
test_is_str_or_inst(self)
Test the lib.arg_check.is_str_or_inst() function. |
source code
|
|
|
test_is_str_or_num_or_str_num_list(self)
Test the lib.arg_check.is_str_or_num_or_str_num_list() function. |
source code
|
|
|
test_is_str_or_num_list(self)
Test the lib.arg_check.is_str_or_num_list() function. |
source code
|
|
|
test_is_str_or_str_list(self)
Test the lib.arg_check.is_str_or_str_list() function. |
source code
|
|
|
test_is_tuple(self)
Test the lib.arg_check.is_tuple() function. |
source code
|
|
|
test_is_val_or_list(self)
Test the lib.arg_check.is_val_or_list() function. |
source code
|
|
|
test_validate_arg_all_basic_types(self)
Test lib.arg_check.validate_arg() with basic data type-checking off. |
source code
|
|
|
test_validate_arg_all_containers(self)
Test lib.arg_check.validate_arg() with container type-checking off. |
source code
|
|
|
test_validate_arg_all_basic_types_and_all_containers(self)
Test lib.arg_check.validate_arg() with all type-checking off. |
source code
|
|
|
test_validate_arg_bool(self)
Test lib.arg_check.validate_arg() for a basic Boolean type. |
source code
|
|
|
test_validate_arg_bool_list(self)
Test lib.arg_check.validate_arg() for a list of Booleans. |
source code
|
|
|
test_validate_arg_bool_list_rank2(self)
Test lib.arg_check.validate_arg() for a list of lists of Booleans. |
source code
|
|
|
test_validate_arg_bool_or_bool_list(self)
Test lib.arg_check.validate_arg() for a Boolean or a list of
Booleans. |
source code
|
|
|
test_validate_arg_float(self)
Test lib.arg_check.validate_arg() for a basic float type. |
source code
|
|
|
test_validate_arg_float_list(self)
Test lib.arg_check.validate_arg() for a list of floats. |
source code
|
|
|
test_validate_arg_float_list_rank2(self)
Test lib.arg_check.validate_arg() for a list of lists of floats. |
source code
|
|
|
test_validate_arg_float_or_float_list(self)
Test lib.arg_check.validate_arg() for a float or list of floats. |
source code
|
|
|
test_validate_arg_func(self)
Test lib.arg_check.validate_arg() for a basic function type. |
source code
|
|
|
test_validate_arg_int(self)
Test lib.arg_check.validate_arg() for a basic integer type. |
source code
|
|
|
test_validate_arg_int_list(self)
Test lib.arg_check.validate_arg() for a list of integers. |
source code
|
|
|
test_validate_arg_int_list_rank2(self)
Test lib.arg_check.validate_arg() for a list of lists of integers. |
source code
|
|
|
test_validate_arg_int_or_int_list(self)
Test lib.arg_check.validate_arg() for a integer or a list of
integers. |
source code
|
|
|
test_validate_arg_list(self)
Test lib.arg_check.validate_arg() for a list of anything. |
source code
|
|
|
test_validate_arg_list_or_numpy_array(self)
Test lib.arg_check.validate_arg() for a list of anything or numpy
array. |
source code
|
|
|
test_validate_arg_number(self)
Test lib.arg_check.validate_arg() for a number. |
source code
|
|
|
test_validate_arg_number_array_rank1(self)
Test lib.arg_check.validate_arg() for a rank-1 list or numpy array of
numbers. |
source code
|
|
|
test_validate_arg_number_array_rank2(self)
Test lib.arg_check.validate_arg() for a rank-2 list or numpy array of
numbers. |
source code
|
|
|
test_validate_arg_number_array_rank3(self)
Test lib.arg_check.validate_arg() for a rank-3 list or numpy array of
numbers. |
source code
|
|
|
test_validate_arg_number_list(self)
Test lib.arg_check.validate_arg() for a rank-1 list of numbers. |
source code
|
|
|
test_validate_arg_number_list_rank2(self)
Test lib.arg_check.validate_arg() for a rank-2 list of numbers. |
source code
|
|
|
test_validate_arg_number_list_rank3(self)
Test lib.arg_check.validate_arg() for a rank-3 list of numbers. |
source code
|
|
|
test_validate_arg_number_numpy_array_rank1(self)
Test lib.arg_check.validate_arg() for a rank-1 numpy array of
numbers. |
source code
|
|
|
test_validate_arg_number_numpy_array_rank2(self)
Test lib.arg_check.validate_arg() for a rank-2 numpy array of
numbers. |
source code
|
|
|
test_validate_arg_number_numpy_array_rank3(self)
Test lib.arg_check.validate_arg() for a rank-3 numpy array of
numbers. |
source code
|
|
|
test_validate_arg_number_or_number_tuple(self)
Test lib.arg_check.validate_arg() for a rank-1 tuple of numbers. |
source code
|
|
|
test_validate_arg_number_tuple(self)
Test lib.arg_check.validate_arg() for a rank-1 tuple of numbers. |
source code
|
|
|
test_validate_arg_number_tuple_rank2(self)
Test lib.arg_check.validate_arg() for a rank-2 tuple of numbers. |
source code
|
|
|
test_validate_arg_number_tuple_rank3(self)
Test lib.arg_check.validate_arg() for a rank-3 tuple of numbers. |
source code
|
|
|
test_validate_arg_numpy_float_array(self)
Test lib.arg_check.validate_arg() for a numpy float array. |
source code
|
|
|
test_validate_arg_numpy_float_matrix(self)
Test lib.arg_check.validate_arg() for a numpy matrix of floats. |
source code
|
|
|
test_validate_arg_numpy_float_rank3(self)
Test lib.arg_check.validate_arg() for a numpy rank-3 object of
floats. |
source code
|
|
|
test_validate_arg_numpy_int_array(self)
Test lib.arg_check.validate_arg() for a numpy int array. |
source code
|
|
|
test_validate_arg_numpy_int_matrix(self)
Test lib.arg_check.validate_arg() for a numpy matrix of ints. |
source code
|
|
|
test_validate_arg_numpy_int_rank3(self)
Test lib.arg_check.validate_arg() for a numpy rank-3 object of ints. |
source code
|
|
|
test_validate_arg_str(self)
Test lib.arg_check.validate_arg() for a basic string type. |
source code
|
|
|
test_validate_arg_str_list(self)
Test lib.arg_check.validate_arg() for a list of strings. |
source code
|
|
|
test_validate_arg_str_list_rank2(self)
Test lib.arg_check.validate_arg() for a list of lists of strings. |
source code
|
|
|
test_validate_arg_str_or_file_read(self)
Test lib.arg_check.validate_arg() for a string or a readable file
object. |
source code
|
|
|
test_validate_arg_str_or_file_write(self)
Test lib.arg_check.validate_arg() for a string or a writable file
object. |
source code
|
|
|
test_validate_arg_str_file_read_or_str_file_read_list(self)
Test lib.arg_check.validate_arg() for a string or a readable file
object, or a list of strings or a readable file objects. |
source code
|
|
|
test_validate_arg_str_file_write_or_str_file_write_list(self)
Test lib.arg_check.validate_arg() for a string or a writable file
object, or a list of strings or a writable file objects. |
source code
|
|
|
test_validate_arg_str_or_str_list(self)
Test lib.arg_check.validate_arg() for a string or list of strings. |
source code
|
|
|
test_validate_arg_tuple(self)
Test lib.arg_check.validate_arg() for a tuple of anything. |
source code
|
|
Inherited from base_classes.UnitTestCase :
tearDown
Inherited from unittest.case.TestCase :
__call__ ,
__eq__ ,
__hash__ ,
__init__ ,
__ne__ ,
__repr__ ,
__str__ ,
addCleanup ,
addTypeEqualityFunc ,
assertAlmostEqual ,
assertAlmostEquals ,
assertDictContainsSubset ,
assertDictEqual ,
assertEqual ,
assertEquals ,
assertFalse ,
assertGreater ,
assertGreaterEqual ,
assertIn ,
assertIs ,
assertIsInstance ,
assertIsNone ,
assertIsNot ,
assertIsNotNone ,
assertItemsEqual ,
assertLess ,
assertLessEqual ,
assertListEqual ,
assertMultiLineEqual ,
assertNotAlmostEqual ,
assertNotAlmostEquals ,
assertNotEqual ,
assertNotEquals ,
assertNotIn ,
assertNotIsInstance ,
assertNotRegexpMatches ,
assertRaises ,
assertRaisesRegexp ,
assertRegexpMatches ,
assertSequenceEqual ,
assertSetEqual ,
assertTrue ,
assertTupleEqual ,
assert_ ,
countTestCases ,
debug ,
defaultTestResult ,
doCleanups ,
fail ,
failIf ,
failIfAlmostEqual ,
failIfEqual ,
failUnless ,
failUnlessAlmostEqual ,
failUnlessEqual ,
failUnlessRaises ,
id ,
run ,
shortDescription ,
skipTest
Inherited from unittest.case.TestCase (private):
_addSkip ,
_baseAssertEqual ,
_deprecate ,
_formatMessage ,
_getAssertEqualityFunc ,
_truncateMessage
|