remove the test_dict_api from test_comments.py, since the test_dict_api from test_conversation.py tests both IReplies adapters.

svn path=/plone.app.discussion/trunk/; revision=27106
This commit is contained in:
Timo Stollenwerk 2009-05-25 10:38:58 +00:00
parent 0797579bfd
commit 731f83b706
2 changed files with 16 additions and 17 deletions

View File

@ -173,9 +173,5 @@ class RepliesTest(PloneTestCase):
# Make sure the first comment is still in the conversation # Make sure the first comment is still in the conversation
self.assertEquals(conversation.total_comments, 1) self.assertEquals(conversation.total_comments, 1)
def test_dict_api(self):
# ensure all operations use only top-level comments
pass
def test_suite(): def test_suite():
return unittest.defaultTestLoader.loadTestsFromName(__name__) return unittest.defaultTestLoader.loadTestsFromName(__name__)

View File

@ -524,6 +524,9 @@ class RepliesTest(PloneTestCase):
self.assertEquals(len(replies), 0) self.assertEquals(len(replies), 0)
def test_dict_api(self): def test_dict_api(self):
# This test is for the ConversationReplies as well as the
# CommentReplies adapter.
#
# Ensure all operations use only top-level comments. Add some # Ensure all operations use only top-level comments. Add some
# deeper children and ensure that these are not exposed through the # deeper children and ensure that these are not exposed through the
# IReplies dict. # IReplies dict.