diff --git a/account_tax_balance/tests/test_account_tax_balance.py b/account_tax_balance/tests/test_account_tax_balance.py index 30006627..d354453b 100644 --- a/account_tax_balance/tests/test_account_tax_balance.py +++ b/account_tax_balance/tests/test_account_tax_balance.py @@ -98,8 +98,7 @@ class TestAccountTaxBalance(TransactionCase): # 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%") + self.assertIn(tax, taxes) # testing buttons tax_action = tax.view_tax_lines()