[Erp5-report] r21179 - /erp5/trunk/products/ERP5SyncML/tests/testERP5SyncML.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed May 28 10:24:49 CEST 2008
Author: jerome
Date: Wed May 28 10:24:47 2008
New Revision: 21179
URL: http://svn.erp5.org?rev=21179&view=rev
Log:
use assertEquals so that we can see the difference in the traceback
Modified:
erp5/trunk/products/ERP5SyncML/tests/testERP5SyncML.py
Modified: erp5/trunk/products/ERP5SyncML/tests/testERP5SyncML.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5SyncML/tests/testERP5SyncML.py?rev=21179&r1=21178&r2=21179&view=diff
==============================================================================
--- erp5/trunk/products/ERP5SyncML/tests/testERP5SyncML.py (original)
+++ erp5/trunk/products/ERP5SyncML/tests/testERP5SyncML.py Wed May 28 10:24:47 2008
@@ -799,16 +799,16 @@
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):
"""
More information about the Erp5-report
mailing list