From 2ecad9f90c0247d2689501eb3711093ae34d786d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 31 Dec 2015 13:29:32 +0100 Subject: [PATCH] Add test for TaxLine.on_change_tax issue5199 review17711002 --- tests/scenario_invoice.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/scenario_invoice.rst b/tests/scenario_invoice.rst index 95cd36802b..16d2667320 100644 --- a/tests/scenario_invoice.rst +++ b/tests/scenario_invoice.rst @@ -119,6 +119,18 @@ Create invoice:: Decimal('20.00') >>> invoice.total_amount Decimal('240.00') + >>> invoice.save() + +Test change tax:: + + >>> tax_line, = invoice.taxes + >>> tax_line.tax == tax + True + >>> tax_line.tax = None + >>> tax_line.tax = tax + +Post invoice:: + >>> invoice.click('post') >>> invoice.state u'posted'