def test_create_ion_with_wrong_units_raises_unit_conversion_error(): with pytest.raises(u.UnitsError): fiasco.Ion('fe_5', temperature.value*u.s)