Commit f7e12b3f authored by Jérome Perrin's avatar Jérome Perrin

also assert that non indexable templates cannot be found during catalog searches.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29235 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3de42a17
......@@ -309,8 +309,16 @@ class TestTemplate(ERP5TypeTestCase):
self.tic()
self.assertTrue(document.isIndexable)
self.assertEqual(len(preference.objectIds()), 1)
for template in preference.objectValues():
self.assertFalse(template.isIndexable)
template = preference.objectValues()[0]
self.assertFalse(template.isIndexable)
# Because they are not indexable, they cannot be found by catalog
transaction.commit()
self.tic()
self.assertEquals(0, len(self.portal.portal_catalog(uid=template.getUid())))
template_line = template.objectValues()[0]
self.assertEquals(0,
len(self.portal.portal_catalog(uid=template_line.getUid())))
# and this is still true if you create two templates from the same document
# #929
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment