fixed catalog test to fail for current broken Type()

svn path=/plone.app.discussion/trunk/; revision=35265
This commit is contained in:
Florian Friesdorf 2010-03-18 13:22:06 +00:00
parent 2815febe46
commit 5e6c7f6fdb

View File

@ -314,12 +314,12 @@ class CommentCatalogTest(PloneTestCase):
self.typetool.constructContent('Topic', self.portal, 'topic')
topic = self.portal.topic
crit = topic.addCriterion('Type', 'ATSimpleStringCriterion')
crit.setValue('Discussion Item')
crit.setValue('Comment')
query = topic.buildQuery()
# Make sure the comment we just added is returned by the collection
self.assertEquals(len(query), 1)
self.assertEquals(query['Type'], 'Discussion Item')
self.assertEquals(query['Type'], 'Comment')
self.assertEquals(len(topic.queryCatalog()), 1)
def test_suite():