diff --git a/tests/scenario_deposit.rst b/tests/scenario_deposit.rst index d2f7f01cd6..303e3ab2ae 100644 --- a/tests/scenario_deposit.rst +++ b/tests/scenario_deposit.rst @@ -94,3 +94,18 @@ Recall deposit:: Decimal('-100.00') >>> invoice.untaxed_amount Decimal('400.00') + +Recall too much:: + + >>> deposit_line.unit_price = Decimal('-200.00') + >>> deposit_line.save() + >>> invoice.click('post') # doctest: +IGNORE_EXCEPTION_DETAIL + Traceback (most recent call last): + ... + DepositError: ... + +Recall available:: + + >>> deposit_line.unit_price = Decimal('-100.00') + >>> deposit_line.save() + >>> invoice.click('post')