Commit f1d157f8 authored by Łukasz Nowak's avatar Łukasz Nowak

Cover another case: no tic between uploads.

parent c47e573d
......@@ -137,4 +137,15 @@ class TestShaCache(ShaCacheMixin, ERP5TypeTestCase):
self.assertEquals('published', document2.getValidationState())
self.assertEquals('archived', document.getValidationState())
def test_put_file_twice_no_tic(self):
self.postFile()
transaction.commit()
self.postFile()
transaction.commit()
self.tic()
document_list = self.portal.portal_catalog(reference=self.key)
self.assertEqual(2, len(document_list))
self.assertEqual(sorted(['archived', 'published']), sorted([
q.getValidationState() for q in document_list]))
61
\ No newline at end of file
62
\ No newline at end of file
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