def test_transformer_connection_mapping(cyme_value, winding, expected): reader = Reader() actual = reader.transformer_connection_configuration_mapping( cyme_value, winding) assert actual == expected # Function also takes strings actual = reader.transformer_connection_configuration_mapping( str(cyme_value), winding) assert actual == expected
def test_transformer_connection_mapping_invalid_winding(): reader = Reader() with pytest.raises(ValueError): reader.transformer_connection_configuration_mapping(0.0, 2)