From 60668cb76ba9d9fd0288d3be5e66192bd48bc5a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul=20=28ACSONE=29?= Date: Mon, 3 Apr 2017 10:36:55 +0200 Subject: [PATCH] account_tax_balance: improve test coverage --- account_tax_balance/tests/test_account_tax_balance.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/account_tax_balance/tests/test_account_tax_balance.py b/account_tax_balance/tests/test_account_tax_balance.py index 99102833..30006627 100644 --- a/account_tax_balance/tests/test_account_tax_balance.py +++ b/account_tax_balance/tests/test_account_tax_balance.py @@ -96,6 +96,11 @@ class TestAccountTaxBalance(TransactionCase): self.assertEqual( action['xml_id'], 'account_tax_balance.action_tax_balances_tree') + # exercise search has_moves = True + taxes = self.env['account.tax'].search([('has_moves', '=', True)]) + self.assertEqual(len(taxes), 1) + self.assertEqual(taxes[0].name, u"Tax 10.0%") + # testing buttons tax_action = tax.view_tax_lines() base_action = tax.view_base_lines()