fixed catalog test to fail for current broken Type()
svn path=/plone.app.discussion/trunk/; revision=35265
This commit is contained in:
parent
2815febe46
commit
5e6c7f6fdb
@ -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__)
|
||||
return unittest.defaultTestLoader.loadTestsFromName(__name__)
|
||||
|
Loading…
Reference in New Issue
Block a user