def test_process_log_files_invalid(): with pytest.raises(config.ConfigError): config._process_log_files({}) with pytest.raises(config.ConfigError): config._process_log_files({'files': []}) with pytest.raises(config.ConfigError): config._process_log_files({'file': []})
def test_process_log_files(data, expected): assert config._process_log_files(data) == expected