def test_f_lz(): calc = Calc() with pytest.raises(ValueError) as ex: calc.f(-5) assert "Invalid argument: number must be more or eq of zero" in str( ex.value)
def test_f_more_20(): calc = Calc() assert calc.f(21) == 51090942171709440000