Browse Source

account_tax_balance: improve test coverage

pull/736/head
Stéphane Bidoul (ACSONE) 8 years ago
committed by Francisco Ivan Anton Prieto
parent
commit
12aaa9d4a1
  1. 5
      account_tax_balance/tests/test_account_tax_balance.py

5
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()

Loading…
Cancel
Save