Commit 1d799e38 authored by Romain Courteaud's avatar Romain Courteaud

Test portal_catalog.getObject, which returned None before the revision 2.25 of

ZSQLCatalog/ZSQLCatalog.py


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4347 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2adbf07a
......@@ -422,3 +422,15 @@ class TestERP5Catalog(ERP5TypeTestCase):
self.checkRelativeUrlInSqlPathList([
organisation.getRelativeUrl(),
'portal_categories/%s' % base_category.getRelativeUrl()])
def test_15_getObject(self, quiet=0, run=run_all_test):
if not run: return
if not quiet:
message = 'getObject'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ',0,message)
# portal_catalog.getObject should return None if the UID parameters
# is a string
portal_catalog = self.getCatalogTool()
result_object = portal_catalog.getObject("StringUID")
self.assertEquals(None, result_object)
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