From 832bdf393d4d0d1a6d7d0abd496f2ded150a3cfd Mon Sep 17 00:00:00 2001 From: Yusei Tahara <yusei@nexedi.com> Date: Fri, 11 Sep 2009 06:21:49 +0000 Subject: [PATCH] Add test_moduleListMethod to make sure that list method works on all the modules. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28917 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testXHTML.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/product/ERP5/tests/testXHTML.py b/product/ERP5/tests/testXHTML.py index ac76f63372c..248417ecf85 100644 --- a/product/ERP5/tests/testXHTML.py +++ b/product/ERP5/tests/testXHTML.py @@ -32,6 +32,7 @@ import os import popen2 import urllib +from Testing import ZopeTestCase from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase from Products.CMFCore.utils import getToolByName from AccessControl.SecurityManagement import newSecurityManager @@ -175,6 +176,13 @@ class TestXHTML(ERP5TypeTestCase): error_list.append(form_path) self.assertEquals(error_list, []) + def test_moduleListMethod(self): + """Make sure that module's list method works.""" + for document in self.portal.contentValues(): + if document.portal_type.endswith(' Module'): + ZopeTestCase._print('\n%s.' % document.id) + self.assert_(document.title in document.list(reset=1)) + class W3Validator(object): def __init__(self, validator_path, show_warnings): -- 2.30.9