Add FTI for Discussion Item and test

svn path=/plone.app.discussion/trunk/; revision=27068
This commit is contained in:
Martin Aspeli
2009-05-23 16:12:45 +00:00
parent e296058c37
commit 8c3c4bdfa0
4 changed files with 46 additions and 2 deletions
+7 -1
View File
@@ -63,7 +63,13 @@ class CommentTest(PloneTestCase):
def test_fti(self):
# test that we can look up an FTI for Discussion Item
pass
self.assert_("Discussion Item" in self.portal.portal_types.objectIds())
comment1 = createObject('plone.Comment')
fti = self.portal.portal_types.getTypeInfo(comment1)
self.assertEquals('Discussion Item', fti.getTypeInfo(comment1).getId())
class RepliesTest(PloneTestCase):