def test_fug_coeff_phase_comp_invalid_phase(m_sol): with pytest.raises(PropertyNotSupportedError): Ideal.fug_coeff_phase_comp(m_sol.props[1], "Sol", "foo")
def test_fug_coeff_phase_comp(m): for p in m.params.phase_list: for j in m.params.component_list: assert Ideal.fug_coeff_phase_comp(m.props[1], p, j) == 1