From 9f9040aa02a63c57a5408258a2e8caf7c7707f0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Wed, 28 May 2008 08:24:47 +0000 Subject: [PATCH] use assertEquals so that we can see the difference in the traceback git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21179 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5SyncML/tests/testERP5SyncML.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/product/ERP5SyncML/tests/testERP5SyncML.py b/product/ERP5SyncML/tests/testERP5SyncML.py index 58dc6adb37..9d23f5f992 100644 --- a/product/ERP5SyncML/tests/testERP5SyncML.py +++ b/product/ERP5SyncML/tests/testERP5SyncML.py @@ -799,16 +799,16 @@ class TestERP5SyncML(TestERP5SyncMLMixin, ERP5TypeTestCase): sub_sub_person2 = sub_person1_c._getOb(self.id2) # remove ('','portal...','person_server') len_path = len(sub_sub_person1.getPhysicalPath()) - 3 - self.failUnless(len_path==3) + self.assertEquals(len_path, 3) len_path = len(sub_sub_person2.getPhysicalPath()) - 3 - self.failUnless(len_path==3) - self.failUnless(sub_sub_person1.getDescription()==self.description1) - self.failUnless(sub_sub_person1.getFirstName()==self.first_name1) - self.failUnless(sub_sub_person1.getLastName()==self.last_name1) - self.failUnless(sub_sub_person1.getDefaultTelephoneText()=='+(0)-0689778308') - self.failUnless(sub_sub_person2.getDescription()==self.description2) - self.failUnless(sub_sub_person2.getFirstName()==self.first_name2) - self.failUnless(sub_sub_person2.getLastName()==self.last_name2) + self.assertEquals(len_path, 3) + self.assertEquals(sub_sub_person1.getDescription(), self.description1) + self.assertEquals(sub_sub_person1.getFirstName(), self.first_name1) + self.assertEquals(sub_sub_person1.getLastName(), self.last_name1) + self.assertEquals(sub_sub_person1.getDefaultTelephoneText(), '+(0)-0689778308') + self.assertEquals(sub_sub_person2.getDescription(), self.description2) + self.assertEquals(sub_sub_person2.getFirstName(), self.first_name2) + self.assertEquals(sub_sub_person2.getLastName(), self.last_name2) def test_18_UpdateSubObject(self, quiet=0, run=run_all_test): """ -- 2.30.9