From 538357533b8932924419e7458441477035325fe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miquel=20Ra=C3=AFch?= Date: Fri, 6 May 2022 10:47:46 +0200 Subject: [PATCH] [FIX] account_move_template: assertEquals -> assertEqual --- .../tests/test_account_move_template.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/account_move_template/tests/test_account_move_template.py b/account_move_template/tests/test_account_move_template.py index d5c10c69..510c40d4 100644 --- a/account_move_template/tests/test_account_move_template.py +++ b/account_move_template/tests/test_account_move_template.py @@ -188,10 +188,10 @@ class TestAccountMoveTemplate(TransactionCase): ) ) - self.assertEquals(template.company_id, self.user.company_id) + self.assertEqual(template.company_id, self.user.company_id) template_2 = template.copy() - self.assertEquals(template_2.name, "%s (copy)" % template.name) + self.assertEqual(template_2.name, "%s (copy)" % template.name) wiz = ( self.env["wizard.select.move.template"] @@ -210,11 +210,11 @@ class TestAccountMoveTemplate(TransactionCase): aml = self.env["account.move.line"].search( [("account_id", "=", self.account_company_1.id)], limit=1 ) - self.assertEquals(res["domain"], ([("id", "in", aml.move_id.ids)])) + self.assertEqual(res["domain"], ([("id", "in", aml.move_id.ids)])) aml = self.env["account.move.line"].search([("name", "=", "L1")], limit=1) - self.assertEquals(aml.tax_line_id, self.tax) - self.assertEquals(aml.partner_id, self.partner) + self.assertEqual(aml.tax_line_id, self.tax) + self.assertEqual(aml.partner_id, self.partner) aml = self.env["account.move.line"].search([("name", "=", "L2")], limit=1) - self.assertEquals(aml.tax_ids[0], self.tax) + self.assertEqual(aml.tax_ids[0], self.tax) with self.assertRaises(IntegrityError), mute_logger("odoo.sql_db"): template_2.name = template.name