From 2754d897e43b3d214421198b452f4b136f330dc6 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Sun, 24 May 2009 15:36:31 +0000 Subject: [PATCH] add some more assertions to test dict api. svn path=/plone.app.discussion/trunk/; revision=27089 --- plone/app/discussion/tests/test_conversation.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plone/app/discussion/tests/test_conversation.py b/plone/app/discussion/tests/test_conversation.py index c429535..9f9bd28 100644 --- a/plone/app/discussion/tests/test_conversation.py +++ b/plone/app/discussion/tests/test_conversation.py @@ -421,10 +421,13 @@ class RepliesTest(PloneTestCase): new_id_2_1 = replies_to_comment2.addComment(comment2_1) - # TODO: This isn't correct. Only the two top-level comments - # should be there + # check that replies only contain the direct comments + # and no comments deeper than 1 self.assertEquals(conversation.total_comments, 6) self.assertEquals(len(replies), 2) + self.assertEquals(len(replies_to_comment1), 2) + self.assertEquals(len(replies_to_comment1_1), 1) + self.assertEquals(len(replies_to_comment2), 1) def test_suite(): return unittest.defaultTestLoader.loadTestsFromName(__name__) \ No newline at end of file