Commit 5297519a authored by Yusei Tahara's avatar Yusei Tahara

Add a very simple test for getDocumentValueList.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23822 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d8c780be
......@@ -881,6 +881,14 @@ class TestERP5Web(ERP5TypeTestCase, ZopeTestCase.Functional):
field.get_value('form_id'),
field.get_value('field_id')))
def test_15_getDocumentValueList(self, quiet=quiet, run=run_all_test):
"""Make sure that getDocumentValueList works."""
self.setupWebSite()
website = self.web_site_module[self.website_id]
website.getDocumentValueList(
portal_type='Document',
sort_on=[('translated_portal_type', 'ascending')])
class TestERP5WebWithSimpleSecurity(ERP5TypeTestCase):
"""
......@@ -1162,6 +1170,7 @@ class TestERP5WebWithSimpleSecurity(ERP5TypeTestCase):
self.assertEquals(page_jp_0.getUid(),
section.WebSection_getDocumentValueList()[0].getUid())
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestERP5Web))
......
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