def test_validated_name_caesium(self): """Test validated_name('Caesium') returns 'Cesium'.................""" name1 = "Caesium" for name2 in [name1, name1.lower(), name1.upper()]: assert element.validated_name(name2) == "Cesium"
def test_validated_name_exception(self): """Test validated_name('Xzzzzz') raises ElementNameError...........""" with pytest.raises(element.ElementNameError): element.validated_name("Xzzzzz")
def test_validated_name_aluminium(self): """Test validated_name('Aluminium') returns 'Aluminum'.............""" name1 = "Aluminium" for name2 in [name1, name1.lower(), name1.upper()]: assert element.validated_name(name2) == "Aluminum"
def test_validated_name_good(self): """Test validated_name.............................................""" for z1, sym1, name1, mass1 in element._Z_SYMBOL_NAME_MASS: for name2 in [name1, name1.lower(), name1.upper()]: assert element.validated_name(name2) == name1