def test_multiply_ten_numbers(): c = Calc() s = range(1, 10) res = c.mul(*s) assert res == 362880
def test_mul_by_zero_raises_exception(): c = Calc() with pytest.raises(ValueError): c.mul(9, 0)
def test_multiply_three_numbers(): c = Calc() res = c.mul(3, 5, 4) assert res == 60
def test_multiply_two_numbers(): c = Calc() res = c.mul(5, 3) assert res == 15