Commit a61b7900 authored by Julien Muchembled's avatar Julien Muchembled

Update testIngestion

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27937 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent aed0c449
...@@ -556,8 +556,8 @@ class TestIngestion(ERP5TypeTestCase): ...@@ -556,8 +556,8 @@ class TestIngestion(ERP5TypeTestCase):
""" """
filename = 'TEST-en-002.doc' filename = 'TEST-en-002.doc'
document = self.getDocument('one') document = self.getDocument('one')
# Revision is 0 before upload (revisions are strings) # First revision is 1 (like web pages)
self.assertEquals(document.getRevision(), '0') self.assertEquals(document.getRevision(), '1')
f = makeFileUpload(filename) f = makeFileUpload(filename)
document.edit(file=f) document.edit(file=f)
# set source # set source
...@@ -566,7 +566,7 @@ class TestIngestion(ERP5TypeTestCase): ...@@ -566,7 +566,7 @@ class TestIngestion(ERP5TypeTestCase):
# source_reference set to file name ? # source_reference set to file name ?
self.assertEquals(document.getSourceReference(), filename) self.assertEquals(document.getSourceReference(), filename)
# Revision is 1 after upload (revisions are strings) # Revision is 1 after upload (revisions are strings)
self.assertEquals(document.getRevision(), '1') self.assertEquals(document.getRevision(), '2')
document.reindexObject() document.reindexObject()
transaction.commit() transaction.commit()
......
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