Commit 85eeeee5 authored by Yusei Tahara's avatar Yusei Tahara

Remove a test for setUniqueReference method which is not used and not working.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19328 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 80799565
...@@ -325,25 +325,6 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -325,25 +325,6 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional):
self.tic() self.tic()
self.failUnless(doc.getLatestVersionValue() == docs[7]) # there are two latest, neither in user language - it chooses the one in original language 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): def test_06_testExplicitRelations(self,quiet=QUIET,run=RUN_ALL_TEST):
""" """
Test explicit relations. Test explicit relations.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment