make sure a comment has been added before testing its removal.

svn path=/plone.app.discussion/trunk/; revision=27063
This commit is contained in:
Timo Stollenwerk 2009-05-23 14:24:24 +00:00
parent 8282307e0a
commit 5a0276e117

View File

@ -64,6 +64,11 @@ class ConversationTest(PloneTestCase):
new_id = conversation.addComment(comment) new_id = conversation.addComment(comment)
# make sure the comment has been added
self.assertEquals(len(conversation.getComments()), 1)
self.assertEquals(len(conversation.getThreads()), 1)
self.assertEquals(conversation.total_comments, 1)
# delete the comment we just created # delete the comment we just created
conversation.__delitem__(new_id) conversation.__delitem__(new_id)