test conversation.total_comments instead of len(conversation.getComments()) in test_total_comments.

svn path=/plone.app.discussion/trunk/; revision=27037
This commit is contained in:
Timo Stollenwerk 2009-05-20 16:07:29 +00:00
parent a279520592
commit afb07e5f0b

View File

@ -62,8 +62,9 @@ class ConversationTest(PloneTestCase):
# Pretend that we have traversed to the comment by aq wrapping it.
conversation = conversation.__of__(self.portal.doc1)
# Add a three comment. Note: in real life, we always create comments via the factory
# to allow different factories to be swapped in
# Add a three comments. Note: in real life, we always create
# comments via the factory to allow different factories to be
# swapped in
comment1 = createObject('plone.Comment')
comment1.title = 'Comment 1'
@ -81,7 +82,7 @@ class ConversationTest(PloneTestCase):
new_comment2_id = conversation.addComment(comment2)
new_comment3_id = conversation.addComment(comment3)
self.assertEquals(len(conversation.getComments()), 3)
self.assertEquals(conversation.total_comments, 3)
def test_commentators(self):
# add and remove a few comments to make sure the commentators
@ -95,7 +96,7 @@ class ConversationTest(PloneTestCase):
pass
def test_get_comments_batched(self):
pass
pass
def test_get_threads(self):
pass