Test Cases API Reference¶
Submodules¶
oblib.tests.test_data_model module¶
-
class
oblib.tests.test_data_model.TestDataModelEntrypoint(methodName='runTest')¶ Bases:
unittest.case.TestCase-
setUp()¶ Hook method for setting up the test fixture before exercising it.
-
tearDown()¶ Hook method for deconstructing the test fixture after testing it.
-
test_can_write_concept()¶
-
test_concepts_can_type_check()¶
-
test_concepts_load_details()¶
-
test_conversion_to_json()¶
-
test_conversion_to_xml()¶
-
test_decimals_and_precision()¶
-
test_facts_stored_with_context()¶
-
test_get_table_for_concept()¶
-
test_hypercube_can_identify_axis_domains()¶
-
test_hypercube_rejects_context_with_unwanted_axes()¶
-
test_hypercube_rejects_out_of_domain_axis_values()¶
-
test_hypercube_store_context()¶
-
test_ids_in_xml_and_json()¶
-
test_input_ids()¶
-
test_instantiate_empty_entrypoint()¶
-
test_is_unit_method()¶
-
test_json_fields_are_strings()¶
-
test_optional_namespaces_included()¶
-
test_reject_invalid_datatype()¶
-
test_reject_missing_or_invalid_units()¶
-
test_set_context_arg()¶
-
test_set_default_context_values()¶
-
test_set_default_multiple_times()¶
-
test_set_raises_exception()¶
-
test_set_separate_dimension_args()¶
-
test_sufficient_context_instant_vs_duration()¶
-
test_tableless_facts()¶
-
test_validate_context_axes()¶
-
test_validate_values_for_enumerated_solar_data_types()¶
-