[Erp5-report] r19328 - /erp5/trunk/products/ERP5OOo/tests/testDms.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Feb 15 14:02:28 CET 2008
Author: yusei
Date: Fri Feb 15 14:02:28 2008
New Revision: 19328
URL: http://svn.erp5.org?rev=19328&view=rev
Log:
Remove a test for setUniqueReference method which is not used and not working.
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=19328&r1=19327&r2=19328&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/testDms.py (original)
+++ erp5/trunk/products/ERP5OOo/tests/testDms.py Fri Feb 15 14:02:28 2008
@@ -325,25 +325,6 @@
self.tic()
self.failUnless(doc.getLatestVersionValue() == docs[7]) # there are two latest, neither in user language - it chooses the one in original language
- def test_05_UniqueReference(self,quiet=QUIET,run=RUN_ALL_TEST):
- """
- Test automatic setting of unique reference
- """
- if not run: return
- printAndLog('\nTest Automatic Setting Unique Reference')
- # create three empty test documents
- document1 = self.portal.document_module.newContent()
- document2 = self.portal.document_module.newContent()
- document3 = self.portal.document_module.newContent()
- # run setUniqueReference on the second
- document2.setUniqueReference()
- # reference of the second doc should now be TEST-auto-2
- self.assertEquals('TEST-auto-2', document2.getReference())
- # run setUniqueReference('uniq') on the third
- document3.setUniqueReference('uniq')
- # reference of the third doc should now be TEST-uniq-1
- self.assertEquals('TEST-uniq-1', document3.getReference())
-
def test_06_testExplicitRelations(self,quiet=QUIET,run=RUN_ALL_TEST):
"""
Test explicit relations.
More information about the Erp5-report
mailing list