fix tests for bugfix 834504 ("Replies have a wrong path index.")

svn path=/plone.app.discussion/trunk/; revision=27661
This commit is contained in:
Timo Stollenwerk
2009-06-24 20:11:27 +00:00
parent 99b7171265
commit 768b2095de
2 changed files with 5 additions and 2 deletions
@@ -747,11 +747,14 @@ class RepliesTest(PloneTestCase):
# Create the nested comment structure
new_id_1 = replies.addComment(comment1)
comment1 = self.portal.doc1.restrictedTraverse('++conversation++default/%s' % new_id_1)
replies_to_comment1 = IReplies(comment1)
new_id_2 = replies.addComment(comment2)
comment2 = self.portal.doc1.restrictedTraverse('++conversation++default/%s' % new_id_2)
replies_to_comment2 = IReplies(comment2)
new_id_1_1 = replies_to_comment1.addComment(comment1_1)
comment1_1 = self.portal.doc1.restrictedTraverse('++conversation++default/%s' % new_id_1_1)
replies_to_comment1_1 = IReplies(comment1_1)
new_id_1_1_1 = replies_to_comment1_1.addComment(comment1_1_1)