af.tests package

Submodules

af.tests.test_attribute module

class af.tests.test_attribute.TestAttribute(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]
test_attribute_creation_ok()[source]
test_get_hierarchy_representation()[source]
test_load_attribute()[source]
test_representation()[source]
test_set_hierarchy_ok()[source]
test_transform_ok()[source]
test_trasnform_raises_exception()[source]

af.tests.test_base_hierarchy_controller module

class af.tests.test_base_hierarchy_controller.TestBaseHierarchyController(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]
test_correct_hierarchy_association()[source]
test_get_json_representation_generalization_hierarchy()[source]
test_get_json_representation_no_hierarchy()[source]
test_get_json_representation_supression_hierarchy()[source]
test_load_generalization_hierarchy_fails()[source]
test_load_generalization_hierarchy_ok()[source]
test_load_supression_hierarchy_ok()[source]

af.tests.test_csv_controller module

class af.tests.test_csv_controller.TestCSVController(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]
test_amount_of_rows_ok()[source]
test_get_table_column_type_ok()[source]
test_get_table_data_ok()[source]
test_table_columns_info_ok()[source]

af.tests.test_data_config module

class af.tests.test_data_config.TestDataConfig(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_config_representation()[source]
test_data_config_creation_ok()[source]
test_load_config()[source]
test_retrieve_qi_or_identifiable_attributes_ok()[source]
test_validate_config_to_load()[source]

af.tests.test_data_factory module

class af.tests.test_data_factory.TestDataFactory(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_all_available_controllers_are_gathered_ok()[source]
test_create_controller_ok()[source]
test_create_invalid_controller_fails()[source]
test_fail_get_controller_from_extension()[source]
test_fail_getting_inexistent_controller_extension()[source]
test_get_controller_file_extension_ok()[source]
test_get_controller_from_extension_ok()[source]

af.tests.test_hierarchies module

class af.tests.test_hierarchies.TestHierarchies(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]
test_adding_nodes_ok()[source]
test_cannot_transform_inexistent_value_on_generalization_hierarchy()[source]
test_finding_nodes_ok()[source]
test_get_generalization_level_ok()[source]
test_get_leaf_node_ok()[source]
test_hierarchy_depth_failed()[source]
test_hierarchy_depth_ok_leaf_nodes()[source]
test_hierarchy_depth_ok_only_root()[source]
test_hierarchy_representation_ok()[source]
test_hierarchy_should_have_supression_node_by_default()[source]
test_maintain_leaf_nodes_ok()[source]
test_maintain_leaf_nodes_raise_exception_unknown_action()[source]
test_populate_nodes_ok()[source]
test_supression_node_ok()[source]
test_transform_generalization_ok()[source]
test_transform_leaf_nodes_ok()[source]
test_transform_supression_ok()[source]

af.tests.test_nodes module

class af.tests.test_nodes.TestNodes(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_node_creation_ok()[source]
test_remove_node_ok()[source]
test_representation()[source]

af.tests.test_sqlite_controller module

class af.tests.test_sqlite_controller.TestSqliteController(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]
test_amount_of_rows_ok()[source]
test_available_tables_ok()[source]
test_get_table_column_type_ok()[source]
test_get_table_data_ok()[source]
test_table_columns_info_ok()[source]

af.tests.test_sqlite_controller_sickness_db module

class af.tests.test_sqlite_controller_sickness_db.TestSqliteControllerSicknessDb(methodName='runTest')[source]

Bases: unittest.case.TestCase

create_db_copy(db_name)[source]
setUp()[source]
tearDown()[source]
test_get_count_of_distinct_qi_values_ok()[source]
test_get_frequency_of_qi_attributes_ok()[source]
test_remove_row_invalid_length_of_values()[source]
test_remove_row_ok()[source]
test_replace_qi_value_ok()[source]

Module contents

Test module for af