[Erp5-report] r39884 ivan - /erp5/trunk/products/ERP5/tests/testXHTML.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Nov 4 10:19:22 CET 2010
Author: ivan
Date: Thu Nov 4 10:19:20 2010
New Revision: 39884
URL: http://svn.erp5.org?rev=39884&view=rev
Log:
Test acquiring skin item id.
Modified:
erp5/trunk/products/ERP5/tests/testXHTML.py
Modified: erp5/trunk/products/ERP5/tests/testXHTML.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testXHTML.py?rev=39884&r1=39883&r2=39884&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testXHTML.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testXHTML.py [utf8] Thu Nov 4 10:19:20 2010
@@ -255,10 +255,19 @@ class TestXHTML(ERP5TypeTestCase):
for script_path, script in skins_tool.ZopeFind(
skins_tool, obj_metatypes=['Script (Python)'], search_sub=1):
if script.errors!=():
- # we need to add script id as well in test failure
+ # we need to add script id as well in test failure
self.assertEquals('%s : %s' %(script_path, script.errors), ())
-
-
+
+ def test_SkinItemId(self):
+ """
+ Check that skin item id is acquiring is correct.
+ """
+ skins_tool = self.portal.portal_skins
+ for skin_folder in skins_tool.objectValues('Folder'):
+ for skin_item in skin_folder.objectValues():
+ if skin_item.meta_type not in ('File', 'Image', 'DTML Document', 'DTML Method',):
+ skin_item_id = skin_item.id
+ self.assertEqual(skin_item_id, skin_folder[skin_item_id].id)
def test_callableListMethodInListbox(self):
# check all list_method in listboxes
More information about the Erp5-report
mailing list