cis_interface.serialize.tests package¶
Submodules¶
cis_interface.serialize.tests.test_AsciiMapSerialize module¶
-
class
cis_interface.serialize.tests.test_AsciiMapSerialize.
TestAsciiMapSerialize
(*args, **kwargs)[source]¶ Bases:
cis_interface.serialize.tests.test_DefaultSerialize.TestDefaultSerialize
Test class for TestAsciiMapSerialize class.
cis_interface.serialize.tests.test_AsciiTableSerialize module¶
-
class
cis_interface.serialize.tests.test_AsciiTableSerialize.
TestAsciiTableSerialize
(*args, **kwargs)[source]¶ Bases:
cis_interface.serialize.tests.test_DefaultSerialize.TestDefaultSerialize
Test class for AsciiTableSerialize class.
-
attr_list
= (['datatype', 'typedef', 'numpy_dtype'], ['format_str', 'field_names', 'field_units', 'as_array'])¶
-
-
class
cis_interface.serialize.tests.test_AsciiTableSerialize.
TestAsciiTableSerializeSingle
(*args, **kwargs)[source]¶ Bases:
cis_interface.serialize.tests.test_DefaultSerialize.TestDefaultSerialize
Test class for AsciiTableSerialize class.
-
class
cis_interface.serialize.tests.test_AsciiTableSerialize.
TestAsciiTableSerialize_asarray
(*args, **kwargs)[source]¶ Bases:
cis_interface.serialize.tests.test_AsciiTableSerialize.TestAsciiTableSerialize
Test class for AsciiTableSerialize class with as_array.
-
testing_option_kws
= {'as_array': True}¶
-
cis_interface.serialize.tests.test_DefaultSerialize module¶
-
class
cis_interface.serialize.tests.test_DefaultSerialize.
FakeSerializer
(func_serialize=None, func_deserialize=None, encode_func_serialize=None, decode_func_deserialize=None, func_typedef=None, **kwargs)[source]¶ Bases:
cis_interface.serialize.DefaultSerialize.DefaultSerialize
-
class
cis_interface.serialize.tests.test_DefaultSerialize.
TestDefaultSerialize
(*args, **kwargs)[source]¶ Bases:
cis_interface.tests.CisTestClassInfo
Test class for DefaultSerialize class.
-
attr_list
= ['datatype', 'typedef', 'numpy_dtype']¶
-
inst_kwargs
¶ Keyword arguments for creating the test instance.
-
mod
¶ Module for class to be tested.
-
-
class
cis_interface.serialize.tests.test_DefaultSerialize.
TestDefaultSerialize_alias
(*args, **kwargs)[source]¶ Bases:
cis_interface.serialize.tests.test_DefaultSerialize.TestDefaultSerialize_format
Test class for DefaultSerialize class with alias.
-
class
cis_interface.serialize.tests.test_DefaultSerialize.
TestDefaultSerialize_array
(*args, **kwargs)[source]¶ Bases:
cis_interface.serialize.tests.test_DefaultSerialize.TestDefaultSerialize_format
Test class for DefaultSerialize class with format as array.
-
testing_option_kws
= {'as_array': True, 'as_format': True}¶
-
-
class
cis_interface.serialize.tests.test_DefaultSerialize.
TestDefaultSerialize_class
(*args, **kwargs)[source]¶ Bases:
cis_interface.serialize.tests.test_DefaultSerialize.TestDefaultSerialize_func
Test class for DefaultSerialize class with classes.
-
class
cis_interface.serialize.tests.test_DefaultSerialize.
TestDefaultSerialize_format
(*args, **kwargs)[source]¶ Bases:
cis_interface.serialize.tests.test_DefaultSerialize.TestDefaultSerialize
Test class for DefaultSerialize class with format.
-
testing_option_kws
= {'as_format': True}¶
-
-
class
cis_interface.serialize.tests.test_DefaultSerialize.
TestDefaultSerialize_func
(*args, **kwargs)[source]¶ Bases:
cis_interface.serialize.tests.test_DefaultSerialize.TestDefaultSerialize
Test class for DefaultSerialize class with functions.
-
testing_option_kws
= {'as_format': True}¶
-
-
class
cis_interface.serialize.tests.test_DefaultSerialize.
TestDefaultSerialize_func_error
(*args, **kwargs)[source]¶ Bases:
cis_interface.serialize.tests.test_DefaultSerialize.TestDefaultSerialize_func
Test class for DefaultSerialize class with incorrect functions.
-
class
cis_interface.serialize.tests.test_DefaultSerialize.
TestDefaultSerialize_type
(*args, **kwargs)[source]¶ Bases:
cis_interface.serialize.tests.test_DefaultSerialize.TestDefaultSerialize
Test class for DefaultSerialize class with types.
-
class
cis_interface.serialize.tests.test_DefaultSerialize.
TestDefaultSerialize_uniform
(*args, **kwargs)[source]¶ Bases:
cis_interface.serialize.tests.test_DefaultSerialize.TestDefaultSerialize
Test class for items as dictionary.
-
class
cis_interface.serialize.tests.test_DefaultSerialize.
TestDefaultSerialize_uniform_names
(*args, **kwargs)[source]¶ Bases:
cis_interface.serialize.tests.test_DefaultSerialize.TestDefaultSerialize_uniform
Test class for items as dictionary.
cis_interface.serialize.tests.test_JSONSerialize module¶
-
class
cis_interface.serialize.tests.test_JSONSerialize.
TestJSONSerialize
(*args, **kwargs)[source]¶ Bases:
cis_interface.serialize.tests.test_DefaultSerialize.TestDefaultSerialize
Test class for TestJSONSerialize class.
cis_interface.serialize.tests.test_MatSerialize module¶
-
class
cis_interface.serialize.tests.test_MatSerialize.
TestMatSerialize
(*args, **kwargs)[source]¶ Bases:
cis_interface.serialize.tests.test_DefaultSerialize.TestDefaultSerialize
Test class for TestMatSerialize class.
cis_interface.serialize.tests.test_ObjSerialize module¶
-
class
cis_interface.serialize.tests.test_ObjSerialize.
TestObjSerialize
(*args, **kwargs)[source]¶ Bases:
cis_interface.serialize.tests.test_PlySerialize.TestPlySerialize
Test class for TestObjSerialize class.
cis_interface.serialize.tests.test_PandasSerialize module¶
-
class
cis_interface.serialize.tests.test_PandasSerialize.
TestPandasSerialize
(*args, **kwargs)[source]¶ Bases:
cis_interface.serialize.tests.test_AsciiTableSerialize.TestAsciiTableSerialize
Test class for TestPandasSerialize class.
cis_interface.serialize.tests.test_PickleSerialize module¶
-
class
cis_interface.serialize.tests.test_PickleSerialize.
TestPickleSerialize
(*args, **kwargs)[source]¶ Bases:
cis_interface.serialize.tests.test_DefaultSerialize.TestDefaultSerialize
Test class for TestPickleSerialize class.
cis_interface.serialize.tests.test_PlySerialize module¶
-
class
cis_interface.serialize.tests.test_PlySerialize.
TestPlySerialize
(*args, **kwargs)[source]¶ Bases:
cis_interface.serialize.tests.test_DefaultSerialize.TestDefaultSerialize
Test class for TestPlySerialize class.
cis_interface.serialize.tests.test_YAMLSerialize module¶
-
class
cis_interface.serialize.tests.test_YAMLSerialize.
TestYAMLSerialize
(*args, **kwargs)[source]¶ Bases:
cis_interface.serialize.tests.test_DefaultSerialize.TestDefaultSerialize
Test class for TestYAMLSerialize class.
cis_interface.serialize.tests.test_serialize module¶
-
cis_interface.serialize.tests.test_serialize.
test_array_to_bytes
()[source]¶ Test conversion of arrays to bytes and back.
-
cis_interface.serialize.tests.test_serialize.
test_array_to_table
()[source]¶ Test conversion of arrays to ASCII table and back.
-
cis_interface.serialize.tests.test_serialize.
test_cformat2nptype
()[source]¶ Test conversion from C format string to numpy dtype.
-
cis_interface.serialize.tests.test_serialize.
test_cformat2nptype_structured
()[source]¶ Test conversion from C format string to numpy dtype for structured data types.
-
cis_interface.serialize.tests.test_serialize.
test_cformat2pyscanf
()[source]¶ Test conversion of C format string to version for python scanf.
-
cis_interface.serialize.tests.test_serialize.
test_consolidate_array
()[source]¶ Test consolidation of array information in different forms.
-
cis_interface.serialize.tests.test_serialize.
test_dict2list
()[source]¶ Test conversion of a dictionary to a list and back.
-
cis_interface.serialize.tests.test_serialize.
test_format2table
()[source]¶ Test getting table information from a format string.
-
cis_interface.serialize.tests.test_serialize.
test_format_message
()[source]¶ Test formatting message from a list or arguments and back.
-
cis_interface.serialize.tests.test_serialize.
test_get_registered_serializers
()[source]¶ Test get_registered_serializers.
-
cis_interface.serialize.tests.test_serialize.
test_get_serializer_class_errors
()[source]¶ Test errors in get_serializer_class for invalid serializer.
-
cis_interface.serialize.tests.test_serialize.
test_nptype2cformat
()[source]¶ Test conversion from numpy dtype to C format string.
-
cis_interface.serialize.tests.test_serialize.
test_nptype2cformat_structured
()[source]¶ Test conversion from structured numpy dtype to C format string.
-
cis_interface.serialize.tests.test_serialize.
test_numpy2dict
()[source]¶ Test conversion of a numpy array to a dictionary and back.
-
cis_interface.serialize.tests.test_serialize.
test_numpy2list
()[source]¶ Test conversion of a numpy array to a list and back.
-
cis_interface.serialize.tests.test_serialize.
test_numpy2pandas
()[source]¶ Test conversion of a numpy array to a pandas data frame and back.