account_tax_balance: improve test coverage

pull/293/head
Stéphane Bidoul (ACSONE) 2017-04-03 10:36:55 +02:00
parent c53867f7b7
commit 1416a361c9
No known key found for this signature in database
GPG Key ID: 866D394B4986F82D
1 changed files with 5 additions and 0 deletions

View File

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