From 5a0276e11781dd314a5e51d10208de80ead61339 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Sat, 23 May 2009 14:24:24 +0000 Subject: [PATCH] make sure a comment has been added before testing its removal. svn path=/plone.app.discussion/trunk/; revision=27063 --- plone/app/discussion/tests/test_conversation.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plone/app/discussion/tests/test_conversation.py b/plone/app/discussion/tests/test_conversation.py index 802fc00..5e6e868 100644 --- a/plone/app/discussion/tests/test_conversation.py +++ b/plone/app/discussion/tests/test_conversation.py @@ -64,6 +64,11 @@ class ConversationTest(PloneTestCase): 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 conversation.__delitem__(new_id)