cis_interface.metaschema.datatypes.tests package

Submodules

cis_interface.metaschema.datatypes.tests.test_ArrayMetaschemaType module

class cis_interface.metaschema.datatypes.tests.test_ArrayMetaschemaType.TestNDArrayMetaschemaType(*args, **kwargs)[source]

Bases: cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestScalarMetaschemaType

Test class for ArrayMetaschemaType class with 2D array.

assert_result_equal(x, y)[source]

Assert that serialized/deserialized objects equal.

class cis_interface.metaschema.datatypes.tests.test_ArrayMetaschemaType.TestOneDArrayMetaschemaType(*args, **kwargs)[source]

Bases: cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestScalarMetaschemaType

Test class for ArrayMetaschemaType class.

assert_result_equal(x, y)[source]

Assert that serialized/deserialized objects equal.

cis_interface.metaschema.datatypes.tests.test_ContainerMetaschemaType module

cis_interface.metaschema.datatypes.tests.test_ContainerMetaschemaType.test_container_errors()[source]

Test implementation errors on bare container class.

cis_interface.metaschema.datatypes.tests.test_FunctionMetaschemaType module

class cis_interface.metaschema.datatypes.tests.test_FunctionMetaschemaType.TestFunctionMetaschemaType(*args, **kwargs)[source]

Bases: cis_interface.metaschema.datatypes.tests.test_MetaschemaType.TestMetaschemaType

Test class for FunctionMetaschemaType class with float.

test_decode_data_errors()[source]

Test errors in decode_data.

cis_interface.metaschema.datatypes.tests.test_FunctionMetaschemaType.valid_function()[source]

Valid function for testing.

cis_interface.metaschema.datatypes.tests.test_JSONArrayMetaschemaType module

class cis_interface.metaschema.datatypes.tests.test_JSONArrayMetaschemaType.TestJSONArrayMetaschemaType(*args, **kwargs)[source]

Bases: cis_interface.metaschema.datatypes.tests.test_MetaschemaType.TestMetaschemaType

Test class for JSONArrayMetaschemaType class with float.

test_container_errors()[source]

Test errors on container operations.

test_encode_data_readable()[source]

Test corner case of encode_data_readable.

test_item_dictionary()[source]

Test dictionary as items value.

test_validate_errors()[source]

Test error on validation of non-structured array.

cis_interface.metaschema.datatypes.tests.test_JSONArrayMetaschemaType.test_coerce()[source]

Test serialization of coerced types.

cis_interface.metaschema.datatypes.tests.test_JSONMetaschemaType module

class cis_interface.metaschema.datatypes.tests.test_JSONMetaschemaType.TestJSONBooleanMetaschemaType(*args, **kwargs)[source]

Bases: cis_interface.metaschema.datatypes.tests.test_MetaschemaType.TestMetaschemaType

Test class for JSONBooleanMetaschemaType class.

class cis_interface.metaschema.datatypes.tests.test_JSONMetaschemaType.TestJSONIntegerMetaschemaType(*args, **kwargs)[source]

Bases: cis_interface.metaschema.datatypes.tests.test_JSONMetaschemaType.TestJSONBooleanMetaschemaType

Test class for JSONIntegerMetaschemaType class.

class cis_interface.metaschema.datatypes.tests.test_JSONMetaschemaType.TestJSONNullMetaschemaType(*args, **kwargs)[source]

Bases: cis_interface.metaschema.datatypes.tests.test_JSONMetaschemaType.TestJSONBooleanMetaschemaType

Test class for JSONNullMetaschemaType class.

class cis_interface.metaschema.datatypes.tests.test_JSONMetaschemaType.TestJSONNumberMetaschemaType(*args, **kwargs)[source]

Bases: cis_interface.metaschema.datatypes.tests.test_JSONMetaschemaType.TestJSONBooleanMetaschemaType

Test class for JSONNumberMetaschemaType class.

class cis_interface.metaschema.datatypes.tests.test_JSONMetaschemaType.TestJSONStringMetaschemaType(*args, **kwargs)[source]

Bases: cis_interface.metaschema.datatypes.tests.test_JSONMetaschemaType.TestJSONBooleanMetaschemaType

Test class for JSONStringMetaschemaType class.

cis_interface.metaschema.datatypes.tests.test_JSONObjectMetaschemaType module

class cis_interface.metaschema.datatypes.tests.test_JSONObjectMetaschemaType.TestJSONObjectMetaschemaType(*args, **kwargs)[source]

Bases: cis_interface.metaschema.datatypes.tests.test_MetaschemaType.TestMetaschemaType

Test class for JSONObjectMetaschemaType class.

cis_interface.metaschema.datatypes.tests.test_JSONObjectMetaschemaType.test_coerce()[source]

Test serialization of coerced types.

cis_interface.metaschema.datatypes.tests.test_MetaschemaType module

class cis_interface.metaschema.datatypes.tests.test_MetaschemaType.TestMetaschemaType(*args, **kwargs)[source]

Bases: cis_interface.tests.CisTestClassInfo

Test class for MetaschemaType class.

assert_result_equal(x, y)[source]

Assert that serialized/deserialized objects equal.

inst_kwargs

Keyword arguments for creating a class instance.

Type:dict
mod

Absolute name of module containing class to be tested.

Type:str
test_check_decoded()[source]

Test check_decoded.

test_check_encoded()[source]

Test check_encoded.

test_decode_errors()[source]

Test error on decode.

test_definition_schema()[source]

Test definition schema.

test_deserialize_empty()[source]

Test call for empty string.

test_deserialize_error()[source]

Test deserialization errors.

test_deserialize_incomplete()[source]

Test call for incomplete message.

test_encode_data()[source]

Test encode/decode data & type.

test_encode_errors()[source]

Test error on encode.

test_extract_typedef()[source]

Test extract_typedef.

test_fixed2base()[source]

Test conversion of type definition from fixed type to the base.

test_metadata_schema()[source]

Test metadata schema.

test_normalize()[source]

Test normalization.

test_serialize()[source]

Test serialize/deserialize.

test_serialize_error()[source]

Test serialization errors.

test_transform_type()[source]

Test transform_type.

test_update_typedef()[source]

Test update_typedef raises error on non-matching typename.

test_validate()[source]

Test validation.

typedef

Type definition.

Type:dict

cis_interface.metaschema.datatypes.tests.test_ObjMetaschemaType module

class cis_interface.metaschema.datatypes.tests.test_ObjMetaschemaType.TestObjDict(*args, **kwargs)[source]

Bases: cis_interface.metaschema.datatypes.tests.test_PlyMetaschemaType.TestPlyDict

Test for ObjDict class.

inst_kwargs

Keyword arguments for creating a class instance.

Type:dict
test_apply_scalar_map()[source]

Test applying a scalar colormap.

test_to_from_scene()[source]

Test conversion to/from PlantGL scene.

class cis_interface.metaschema.datatypes.tests.test_ObjMetaschemaType.TestObjMetaschemaType(*args, **kwargs)[source]

Bases: cis_interface.metaschema.datatypes.tests.test_PlyMetaschemaType.TestPlyMetaschemaType

Test class for ObjMetaschemaType class with float.

cis_interface.metaschema.datatypes.tests.test_ObjMetaschemaType.test_create_schema()[source]

Test create_schema.

cis_interface.metaschema.datatypes.tests.test_PlyMetaschemaType module

class cis_interface.metaschema.datatypes.tests.test_PlyMetaschemaType.TestPlyDict(*args, **kwargs)[source]

Bases: cis_interface.tests.CisTestClassInfo

Test for PlyDict class.

inst_kwargs

Keyword arguments for creating a class instance.

Type:dict
mod

Absolute name of module containing class to be tested.

Type:str
test_append()[source]

Test appending ply objects.

test_apply_scalar_map(_as_obj=False)[source]

Test applying a scalar colormap.

test_count_elements()[source]

Test count_elements.

test_merge()[source]

Test merging two ply objects.

test_mesh()[source]

Test mesh.

test_properties()[source]

Test explicit exposure of specific element counts as properties against counts based on singular elements.

test_to_from_dict()[source]

Test transformation to/from dict.

test_to_from_scene(_as_obj=False)[source]

Test conversion to/from PlantGL scene.

class cis_interface.metaschema.datatypes.tests.test_PlyMetaschemaType.TestPlyMetaschemaType(*args, **kwargs)[source]

Bases: cis_interface.metaschema.datatypes.tests.test_JSONObjectMetaschemaType.TestJSONObjectMetaschemaType

Test class for PlyMetaschemaType class.

test_decode_data_errors()[source]

Test errors in decode_data.

cis_interface.metaschema.datatypes.tests.test_PlyMetaschemaType.test_create_schema()[source]

Test create_schema.

cis_interface.metaschema.datatypes.tests.test_PlyMetaschemaType.test_singular2plural()[source]

Test conversion from singular element names to plural ones and back.

cis_interface.metaschema.datatypes.tests.test_PlyMetaschemaType.test_translate_ply2fmt_errors()[source]

Test errors in translate_ply2fmt.

cis_interface.metaschema.datatypes.tests.test_PlyMetaschemaType.test_translate_ply2py_errors()[source]

Test errors in translate_ply2py.

cis_interface.metaschema.datatypes.tests.test_PlyMetaschemaType.test_translate_py2ply_errors()[source]

Test errors in translate_py2ply.

cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType module

class cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestBytesMetaschemaType(*args, **kwargs)

Bases: cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestScalarMetaschemaType

class cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestComplexMetaschemaType(*args, **kwargs)

Bases: cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestScalarMetaschemaType

class cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestFloatMetaschemaType(*args, **kwargs)

Bases: cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestScalarMetaschemaType

class cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestIntMetaschemaType(*args, **kwargs)

Bases: cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestScalarMetaschemaType

class cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestScalarMetaschemaType(*args, **kwargs)[source]

Bases: cis_interface.metaschema.datatypes.tests.test_MetaschemaType.TestMetaschemaType

Test class for ScalarMetaschemaType class with float.

test_from_array()[source]

Test getting object from array.

class cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestScalarMetaschemaType_bytes(*args, **kwargs)

Bases: cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestScalarMetaschemaType

class cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestScalarMetaschemaType_complex(*args, **kwargs)

Bases: cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestScalarMetaschemaType

class cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestScalarMetaschemaType_float(*args, **kwargs)

Bases: cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestScalarMetaschemaType

class cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestScalarMetaschemaType_int(*args, **kwargs)

Bases: cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestScalarMetaschemaType

class cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestScalarMetaschemaType_prec(*args, **kwargs)[source]

Bases: cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestScalarMetaschemaType

Test class for ScalarMetaschemaType class with precision.

class cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestScalarMetaschemaType_uint(*args, **kwargs)

Bases: cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestScalarMetaschemaType

class cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestScalarMetaschemaType_unicode(*args, **kwargs)

Bases: cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestScalarMetaschemaType

class cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestScalarMetaschemaType_units(*args, **kwargs)[source]

Bases: cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestScalarMetaschemaType

Test class for ScalarMetaschemaType class with units.

class cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestUintMetaschemaType(*args, **kwargs)

Bases: cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestScalarMetaschemaType

class cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestUnicodeMetaschemaType(*args, **kwargs)

Bases: cis_interface.metaschema.datatypes.tests.test_ScalarMetaschemaType.TestScalarMetaschemaType

cis_interface.metaschema.datatypes.tests.test_SchemaMetaschemaType module

class cis_interface.metaschema.datatypes.tests.test_SchemaMetaschemaType.TestSchemaMetaschemaType(*args, **kwargs)[source]

Bases: cis_interface.metaschema.datatypes.tests.test_JSONObjectMetaschemaType.TestJSONObjectMetaschemaType

Test class for SchemaMetaschemaType class.

cis_interface.metaschema.datatypes.tests.test_conversions module

cis_interface.metaschema.datatypes.tests.test_conversions.test_ply2obj()[source]

Test conversion between ply and obj objects.

cis_interface.metaschema.datatypes.tests.test_conversions.test_register_conversion_errors()[source]

Test errors in register_conversion.

Module contents

cis_interface.metaschema.datatypes.tests.test_add_type_from_schema_errors()[source]

Test errors in add_type_from_schema.

cis_interface.metaschema.datatypes.tests.test_compare_schema()[source]

Test for compare_schema.

cis_interface.metaschema.datatypes.tests.test_encode_decode()[source]

Test encode/decode for valid objects.

cis_interface.metaschema.datatypes.tests.test_encode_decode_readable()[source]

Test encode_data_reable/decode for valid objects.

cis_interface.metaschema.datatypes.tests.test_get_type_class()[source]

Test get_type_class.

cis_interface.metaschema.datatypes.tests.test_get_type_from_def()[source]

Test get_type_from_def.

cis_interface.metaschema.datatypes.tests.test_guess_type_from_msg()[source]

Test guess_type_from_msg.

cis_interface.metaschema.datatypes.tests.test_guess_type_from_obj()[source]

Test guess_type_from_obj.

cis_interface.metaschema.datatypes.tests.test_register_type_errors()[source]

Test errors in register_type for duplicate.