From e4f26588de7bac865c280f0577f7b22a66a3bcd2 Mon Sep 17 00:00:00 2001
From: Gabriel Monnerat <gabriel@tiolive.com>
Date: Thu, 3 May 2012 19:41:57 -0300
Subject: [PATCH] add test to check that the method
 getInstancePropertyAndBaseCategoryList returns properties from property
 sheets correctly

---
 product/ERP5Type/tests/testERP5Type.py | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/product/ERP5Type/tests/testERP5Type.py b/product/ERP5Type/tests/testERP5Type.py
index 3b6f918e78..08b075749a 100644
--- a/product/ERP5Type/tests/testERP5Type.py
+++ b/product/ERP5Type/tests/testERP5Type.py
@@ -3093,6 +3093,17 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
       self.assertEquals(None, person.getProperty('foo_property'))
       self.assertEquals(None, person.getProperty('foobar_property'))
 
+    def testgetInstancePropertyAndBaseCategoryList(self):
+      """
+        Check that the method getInstancePropertyAndBaseCategoryList return
+        properties from property sheets correctly
+      """
+      portal_type = self.portal.portal_types.Email
+      result_list = portal_type.getInstancePropertyAndBaseCategoryList()
+      self.assertTrue("description" in result_list,
+          "description not in %s" % result_list)
+
+
 class TestAccessControl(ERP5TypeTestCase):
   # Isolate test in a dedicaced class in order not to break other tests
   # when this one fails.
-- 
2.30.9