Commit de24b0db authored by Romain Courteaud's avatar Romain Courteaud

Fixed getObject test.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4359 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 16d346d9
...@@ -493,5 +493,10 @@ class TestERP5Catalog(ERP5TypeTestCase): ...@@ -493,5 +493,10 @@ class TestERP5Catalog(ERP5TypeTestCase):
# portal_catalog.getObject should return None if the UID parameters # portal_catalog.getObject should return None if the UID parameters
# is a string # is a string
portal_catalog = self.getCatalogTool() portal_catalog = self.getCatalogTool()
try:
result_object = portal_catalog.getObject("StringUID") result_object = portal_catalog.getObject("StringUID")
self.assertEquals(None, result_object) except ValueError:
# This is the expected result
pass
else:
self.failUnless(0)
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