hardcoded fti_title, don't query typestool for Type()

all tests succeed

svn path=/plone.app.discussion/trunk/; revision=35290
This commit is contained in:
Florian Friesdorf
2010-03-18 14:42:52 +00:00
parent f41c55cc8c
commit 5beebe42fa
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -45,7 +45,7 @@ class CommentTest(PloneTestCase):
def test_type(self):
comment1 = createObject('plone.Comment')
self.assertEquals(comment1.Type(), 'Discussion Item')
self.assertEquals(comment1.Type(), 'Comment')
def test_traversal(self):
# make sure comments are traversable, have an id, absolute_url and physical path
@@ -251,4 +251,4 @@ class RepliesTest(PloneTestCase):
self.assertEquals('http://nohost/plone/doc1/++conversation++default/' + str(new_re_re_re_id), re_re_re_comment.absolute_url())
def test_suite():
return unittest.defaultTestLoader.loadTestsFromName(__name__)
return unittest.defaultTestLoader.loadTestsFromName(__name__)