cis_interface.metaschema.properties.tests package

Submodules

cis_interface.metaschema.properties.tests.test_ArrayMetaschemaProperties module

class cis_interface.metaschema.properties.tests.test_ArrayMetaschemaProperties.TestLengthMetaschemaProperty(*args, **kwargs)[source]

Bases: cis_interface.metaschema.properties.tests.test_MetaschemaProperty.TestMetaschemaProperty

Test class for LengthMetaschemaProperty class.

class cis_interface.metaschema.properties.tests.test_ArrayMetaschemaProperties.TestShapeMetaschemaProperty(*args, **kwargs)[source]

Bases: cis_interface.metaschema.properties.tests.test_MetaschemaProperty.TestMetaschemaProperty

Test class for ShapeMetaschemaProperty class.

cis_interface.metaschema.properties.tests.test_JSONArrayMetaschemaProperties module

class cis_interface.metaschema.properties.tests.test_JSONArrayMetaschemaProperties.TestItemsMetaschemaProperty(*args, **kwargs)[source]

Bases: cis_interface.metaschema.properties.tests.test_MetaschemaProperty.TestMetaschemaProperty

Test class for ItemsMetaschemaProperty class.

cis_interface.metaschema.properties.tests.test_JSONObjectMetaschemaProperties module

class cis_interface.metaschema.properties.tests.test_JSONObjectMetaschemaProperties.TestPropertiesMetaschemaProperty(*args, **kwargs)[source]

Bases: cis_interface.metaschema.properties.tests.test_MetaschemaProperty.TestMetaschemaProperty

Test class for PropertiesMetaschemaProperty class.

cis_interface.metaschema.properties.tests.test_MetaschemaProperty module

class cis_interface.metaschema.properties.tests.test_MetaschemaProperty.TestMetaschemaProperty(*args, **kwargs)[source]

Bases: cis_interface.tests.CisTestClassInfo

Test class for MetaschemaProperty class.

inst_args

Keyword arguments for creating a class instance.

Type:dict
mod

Absolute name of module containing class to be tested.

Type:str
test_compare_invalid()[source]

Test comparision method for the class on invalid objects.

test_compare_valid()[source]

Test comparision method for the class on valid objects.

test_encode()[source]

Test encode method for the class.

test_encode_errors()[source]

Test errors raised by encode.

test_normalize_in_schema()[source]

Test normalization in schema.

test_validate_invalid()[source]

Test validation method for the class on invalid objects.

test_validate_valid()[source]

Test validation method for the class on valid objects.

cis_interface.metaschema.properties.tests.test_MetaschemaProperty.test_dynamic()[source]

Test dynamic creation of property.

cis_interface.metaschema.properties.tests.test_ScalarMetaschemaProperties module

class cis_interface.metaschema.properties.tests.test_ScalarMetaschemaProperties.TestPrecisionMetaschemaProperty(*args, **kwargs)[source]

Bases: cis_interface.metaschema.properties.tests.test_MetaschemaProperty.TestMetaschemaProperty

Test class for PrecisionMetaschemaProperty class.

class cis_interface.metaschema.properties.tests.test_ScalarMetaschemaProperties.TestSubtypeMetaschemaProperty(*args, **kwargs)[source]

Bases: cis_interface.metaschema.properties.tests.test_MetaschemaProperty.TestMetaschemaProperty

Test class for SubtypeMetaschemaProperty class.

test_invalid_encode()[source]

Test invalid encode for object dtype.

class cis_interface.metaschema.properties.tests.test_ScalarMetaschemaProperties.TestUnitsMetaschemaProperty(*args, **kwargs)[source]

Bases: cis_interface.metaschema.properties.tests.test_MetaschemaProperty.TestMetaschemaProperty

Test class for UnitsMetaschemaProperty class.

cis_interface.metaschema.properties.tests.test_ScalarMetaschemaProperties.test_data2dtype_errors()[source]

Check that error is raised for list, dict, & tuple objects.

cis_interface.metaschema.properties.tests.test_ScalarMetaschemaProperties.test_definition2dtype_errors()[source]

Check that error raised if type not specified.

cis_interface.metaschema.properties.tests.test_TypeMetaschemaProperty module

class cis_interface.metaschema.properties.tests.test_TypeMetaschemaProperty.TestTypeMetaschemaProperty(*args, **kwargs)[source]

Bases: cis_interface.metaschema.properties.tests.test_MetaschemaProperty.TestMetaschemaProperty

Test class for TypeMetaschemaProperty class.

Module contents

cis_interface.metaschema.properties.tests.test_get_metaschema_property()[source]

Test get_metaschema_property.

cis_interface.metaschema.properties.tests.test_get_registered_properties()[source]

Test get_registered_properties.

cis_interface.metaschema.properties.tests.test_register_metaschema_property()[source]

Test errors in register_metaschema_property.