Browse Source
account_tax_balance: improve test coverage
pull/293/head
Stéphane Bidoul (ACSONE)
8 years ago
No known key found for this signature in database
GPG Key ID: 866D394B4986F82D
1 changed files with
5 additions and
0 deletions
-
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() |
|
|
|