From 5e6c7f6fdb6e0c8739289aae8e4062f1ad06a0e1 Mon Sep 17 00:00:00 2001 From: Florian Friesdorf Date: Thu, 18 Mar 2010 13:22:06 +0000 Subject: [PATCH] fixed catalog test to fail for current broken Type() svn path=/plone.app.discussion/trunk/; revision=35265 --- plone/app/discussion/tests/test_catalog.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plone/app/discussion/tests/test_catalog.py b/plone/app/discussion/tests/test_catalog.py index 921c318..99a9cde 100644 --- a/plone/app/discussion/tests/test_catalog.py +++ b/plone/app/discussion/tests/test_catalog.py @@ -314,13 +314,13 @@ 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(): - return unittest.defaultTestLoader.loadTestsFromName(__name__) \ No newline at end of file + return unittest.defaultTestLoader.loadTestsFromName(__name__)