From 3fea72842314c1e4f184e8b0ca93003dc9c65b45 Mon Sep 17 00:00:00 2001 From: Nicolas JEUDY Date: Wed, 30 Nov 2016 19:41:05 +0100 Subject: [PATCH] [fix] use in statement on test --- .../tests/test_partner_contact_in_several_companies.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/partner_contact_in_several_companies/tests/test_partner_contact_in_several_companies.py b/partner_contact_in_several_companies/tests/test_partner_contact_in_several_companies.py index a24a664ae..30165c80a 100644 --- a/partner_contact_in_several_companies/tests/test_partner_contact_in_several_companies.py +++ b/partner_contact_in_several_companies/tests/test_partner_contact_in_several_companies.py @@ -30,8 +30,8 @@ class PartnerContactInSeveralCompaniesCase(common.TransactionCase): 'set_value': False }} partner_ids = self.partner.with_context(ctx).search([]) - self.assertTrue(len(self.bob_job1 & partner_ids) != 0) - self.assertTrue(len(self.roger_job2 & partner_ids) != 0) + self.assertTrue(self.bob_job1 in partner_ids) + self.assertTrue(self.roger_job2 in partner_ids) def test_01_show_all_positions(self): """Check that all contact are show if context is empty or