Commit 832bdf39 authored by Yusei Tahara's avatar Yusei Tahara

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
parent fb89d5eb
......@@ -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):
......
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