make sure a comment has been added before testing its removal.
svn path=/plone.app.discussion/trunk/; revision=27063
This commit is contained in:
parent
8282307e0a
commit
5a0276e117
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user