pycadf.tests package

pycadf.tests package

Submodules

pycadf.tests.base module

Test base classes.

class pycadf.tests.base.TestCase(*args, **kwargs)[source]

Bases: testtools.testcase.TestCase

path_get(project_file=None)[source]
setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

temp_config_file_path(name='api_audit_map.conf')[source]

pycadf.tests.test_cadf_spec module

class pycadf.tests.test_cadf_spec.TestCADFSpec(*args, **kwargs)[source]

Bases: pycadf.tests.base.TestCase

test_attachment()[source]
test_cadfabstracttype_attribute_error()[source]

Test an invalid CADFAbstractType attribute is set returns False

test_credential()[source]
test_endpoint()[source]
test_event()[source]
test_event_resource_shortform_not_self()[source]
test_event_unique()[source]
test_federated_credential()[source]
test_geolocation()[source]
test_host()[source]
test_identifier_any_string_is_invalid(warning_mock)[source]
test_identifier_empty_string_is_invalid(warning_mock)[source]
test_identifier_generated_uuid(warning_mock)[source]
test_identifier_joined_uuids_are_valid(warning_mock)[source]
test_identifier_long_nonjoined_uuid_is_invalid(warning_mock)[source]
test_identifier_specific_exceptions_are_valid(warning_mock)[source]
test_identifier_valid_id_extra_chars_is_valid(warning_mock)[source]
test_invalid_value_descriptor()[source]

Test setting a ValidatorDescriptor to None results in ValueError

test_measurement()[source]
test_metric()[source]
test_reason()[source]
test_reporterstep()[source]
test_resource()[source]
test_resource_shortform()[source]

pycadf.tests.test_utils module

class pycadf.tests.test_utils.TestUtils(*args, **kwargs)[source]

Bases: pycadf.tests.base.TestCase

test_mask_value()[source]
test_mask_value_nonstring()[source]

Module contents

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.