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,12 +314,12 @@ class CommentCatalogTest(PloneTestCase):
|
|||||||
self.typetool.constructContent('Topic', self.portal, 'topic')
|
self.typetool.constructContent('Topic', self.portal, 'topic')
|
||||||
topic = self.portal.topic
|
topic = self.portal.topic
|
||||||
crit = topic.addCriterion('Type', 'ATSimpleStringCriterion')
|
crit = topic.addCriterion('Type', 'ATSimpleStringCriterion')
|
||||||
crit.setValue('Discussion Item')
|
crit.setValue('Comment')
|
||||||
query = topic.buildQuery()
|
query = topic.buildQuery()
|
||||||
|
|
||||||
# Make sure the comment we just added is returned by the collection
|
# Make sure the comment we just added is returned by the collection
|
||||||
self.assertEquals(len(query), 1)
|
self.assertEquals(len(query), 1)
|
||||||
self.assertEquals(query['Type'], 'Discussion Item')
|
self.assertEquals(query['Type'], 'Comment')
|
||||||
self.assertEquals(len(topic.queryCatalog()), 1)
|
self.assertEquals(len(topic.queryCatalog()), 1)
|
||||||
|
|
||||||
def test_suite():
|
def test_suite():
|
||||||
|
Loading…
Reference in New Issue
Block a user