[Erp5-report] r23822 - /erp5/trunk/products/ERP5/tests/testERP5Web.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Sep 25 16:29:44 CEST 2008


Author: yusei
Date: Thu Sep 25 16:29:43 2008
New Revision: 23822

URL: http://svn.erp5.org?rev=23822&view=rev
Log:
Add a very simple test for getDocumentValueList.

Modified:
    erp5/trunk/products/ERP5/tests/testERP5Web.py

Modified: erp5/trunk/products/ERP5/tests/testERP5Web.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testERP5Web.py?rev=23822&r1=23821&r2=23822&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testERP5Web.py (original)
+++ erp5/trunk/products/ERP5/tests/testERP5Web.py Thu Sep 25 16:29:43 2008
@@ -881,6 +881,14 @@
                                              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 @@
     self.assertEquals(page_jp_0.getUid(), 
                       section.WebSection_getDocumentValueList()[0].getUid())
 
+
 def test_suite():
   suite = unittest.TestSuite()
   suite.addTest(unittest.makeSuite(TestERP5Web))




More information about the Erp5-report mailing list