[Erp5-report] r27905 - /erp5/trunk/products/ERP5OOo/tests/testDms.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Jul 3 13:57:22 CEST 2009
Author: jm
Date: Fri Jul 3 13:57:19 2009
New Revision: 27905
URL: http://svn.erp5.org?rev=27905&view=rev
Log:
Fix checking of revision system.
Modified:
erp5/trunk/products/ERP5OOo/tests/testDms.py
Modified: erp5/trunk/products/ERP5OOo/tests/testDms.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/testDms.py?rev=27905&r1=27904&r2=27905&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] Fri Jul 3 13:57:19 2009
@@ -223,20 +223,20 @@
document_url = document.getRelativeUrl()
def getTestDocument():
return self.portal.restrictedTraverse(document_url)
- self.failUnless(getTestDocument().getRevision(), '1')
+ self.assertEqual(getTestDocument().getRevision(), '1')
getTestDocument().edit(file=file)
transaction.commit()
self.tic()
- self.failUnless(getTestDocument().getRevision(), '2')
+ self.assertEqual(getTestDocument().getRevision(), '2')
getTestDocument().edit(title='Hey Joe')
transaction.commit()
self.tic()
- self.failUnless(getTestDocument().getRevision(), '3')
+ self.assertEqual(getTestDocument().getRevision(), '3')
another_document = self.portal.portal_contributions.newContent(file=file)
transaction.commit()
self.tic()
- self.failUnless(getTestDocument().getRevision(), '4')
- self.failUnless(getTestDocument().getRevisionList(), ['1', '2', '3', '4'])
+ self.assertEqual(getTestDocument().getRevision(), '4')
+ self.assertEqual(getTestDocument().getRevisionList(), ['1', '2', '3', '4'])
def test_03_Versioning(self,quiet=QUIET,run=RUN_ALL_TEST):
"""
More information about the Erp5-report
mailing list