diff --git a/product/ERP5OOo/tests/testDms.py b/product/ERP5OOo/tests/testDms.py index 39bea127b7ce48d92a0c4b7b709c626910820a82..2f05329d46e038239718d40d0e47fc17fded0232 100644 --- a/product/ERP5OOo/tests/testDms.py +++ b/product/ERP5OOo/tests/testDms.py @@ -325,25 +325,6 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional): 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.