Test method for a full config with dp-anonymization, continuous and sensitive values
()
| 41 | |
| 42 | |
| 43 | def test_full_config(): |
| 44 | """Test method for a full config with dp-anonymization, continuous and sensitive values""" |
| 45 | |
| 46 | parameters = ET.fromstring(FULL_CONFIG) |
| 47 | |
| 48 | full_anon = parameters.find("table") |
| 49 | config_parser = XMLParser(full_anon) |
| 50 | anon_config, sens_config, cont_config = config_parser.get_config() |
| 51 | |
| 52 | assert anon_config is not None |
| 53 | assert sens_config is not None |
| 54 | assert cont_config is not None |
| 55 | |
| 56 | assert anon_config.table_name == "item" |
| 57 | assert anon_config.epsilon == "1.0" |
| 58 | assert anon_config.preproc_eps == "0.0" |
| 59 | assert anon_config.algorithm == "aim" |
| 60 | |
| 61 | |
| 62 | def test_minimal_config(): |
nothing calls this directly
no test coverage detected