revert r37751.

svn path=/plone.app.discussion/trunk/; revision=37753
This commit is contained in:
Timo Stollenwerk
2010-07-12 13:49:57 +00:00
parent cac0bae7a5
commit 27d8ced62d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import unittest
from zope.component import getUtility, createObject
from zope.component import queryUtility, createObject
from Products.PloneTestCase.ptc import PloneTestCase
from plone.app.discussion.tests.layer import DiscussionLayer
@@ -31,7 +31,7 @@ class ToolTest(PloneTestCase):
conversation.addComment(comment)
# Check that the comment got indexed in the tool:
tool = getUtility(ICommentingTool)
tool = queryUtility(ICommentingTool)
comment = list(tool.searchResults())
self.assert_(len(comment) == 1, "There is only one comment, but we got"
" %s results in the search" % len(comment))