From 1d799e383a60984d18089d466447fae5b5683e71 Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Wed, 16 Nov 2005 18:51:26 +0000 Subject: [PATCH] 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 --- product/ERP5Catalog/tests/testERP5Catalog.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/product/ERP5Catalog/tests/testERP5Catalog.py b/product/ERP5Catalog/tests/testERP5Catalog.py index 4366eea61f..221573db41 100755 --- a/product/ERP5Catalog/tests/testERP5Catalog.py +++ b/product/ERP5Catalog/tests/testERP5Catalog.py @@ -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) -- 2.30.9