[Erp5-report] r38792 ivan - /erp5/trunk/products/ERP5OOo/tests/testDms.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Sep 30 13:28:56 CEST 2010
Author: ivan
Date: Thu Sep 30 13:28:52 2010
New Revision: 38792
URL: http://svn.erp5.org?rev=38792&view=rev
Log:
Use proper method.
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=38792&r1=38791&r2=38792&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/testDms.py [utf8] Thu Sep 30 13:28:52 2010
@@ -2191,16 +2191,13 @@ class TestDocumentWithSecurity(TestDocum
filename = 'REF-en-001.odt'
upload_file = makeFileUpload(filename)
document = self.portal.portal_contributions.newContent(file=upload_file)
-
- transaction.commit()
- self.tic()
+ self.stepTic()
document.submit()
preview_html = document.Document_getPreviewAsHTML().replace('\n', ' ')
- transaction.commit()
- self.tic()
+ self.stepTic()
self.assert_('I use reference to look up TEST' in preview_html)
@@ -2218,8 +2215,7 @@ class TestDocumentWithSecurity(TestDocum
f = makeFileUpload('Foo_001.odt')
text_document.edit(file=f.read())
f.close()
- transaction.commit()
- self.tic()
+ self.stepTic()
# the document should be automatically converted to html
self.assertEquals(text_document.getExternalProcessingState(), 'converted')
@@ -2263,8 +2259,7 @@ class TestDocumentWithSecurity(TestDocum
priority=Priority.USER)
self.portal.portal_workflow.doActionFor(user_pref, 'enable_action')
self.assertEqual(user_pref.getPreferenceState(), 'enabled')
- transaction.commit()
- self.tic()
+ self.stepTic()
user_pref.setPreferredThumbnailImageHeight(default_thumbnail_image_height + 10)
user_pref.setPreferredThumbnailImageWidth(default_thumbnail_image_width + 10)
#Verify that the new values defined are the ones used by default
More information about the Erp5-report
mailing list