From a3ac44763b7d74d1e5c04f29e5779e13f0ae89dc Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Sun, 24 May 2009 15:30:16 +0000 Subject: [PATCH] test dict api for RepliesTest fixed (conversation returns all comments, replies return only top level comments). svn path=/plone.app.discussion/trunk/; revision=27088 --- plone/app/discussion/tests/test_conversation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plone/app/discussion/tests/test_conversation.py b/plone/app/discussion/tests/test_conversation.py index fcb6ce3..c429535 100644 --- a/plone/app/discussion/tests/test_conversation.py +++ b/plone/app/discussion/tests/test_conversation.py @@ -423,8 +423,8 @@ class RepliesTest(PloneTestCase): # TODO: This isn't correct. Only the two top-level comments # should be there - #self.assertEquals(conversation.total_comments, 2) self.assertEquals(conversation.total_comments, 6) + self.assertEquals(len(replies), 2) def test_suite(): return unittest.defaultTestLoader.loadTestsFromName(__name__) \ No newline at end of file