Commit 37ade242 authored by Ivan Tyagov's avatar Ivan Tyagov

Add test for multiple link contribution.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36508 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 43b30456
......@@ -1806,6 +1806,26 @@ return 1
self.assertTrue('Continue' in response.getBody())
self.assertTrue('Last page' in response.getBody())
def test_contributeLink(self):
"""
Test contributing a link.
"""
portal = self.portal
kw = {'url':portal.absolute_url()}
web_page = portal.Base_contribute(**kw)
self.stepTic()
self.assertTrue(web_page.getRevision()=='2')
second_web_page = portal.Base_contribute(**kw)
self.stepTic()
self.assertTrue(web_page==second_web_page)
self.assertTrue(second_web_page.getRevision()=='3')
third_web_page = portal.Base_contribute(**kw)
self.stepTic()
self.assertTrue(web_page==second_web_page==third_web_page)
self.assertTrue(third_web_page.getRevision()=='4')
class TestDocumentWithSecurity(TestDocumentMixin):
......
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