From 70a59823acbf6e8ff11bce4566c7bcf2f406ef60 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Tue, 3 Apr 2007 08:20:56 +0000
Subject: [PATCH] Test that the box showing summary in
 Account_viewAccountingTransactionList is not rendered in General Ledger

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13875 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/tests/testAccountingReports.py | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/product/ERP5/tests/testAccountingReports.py b/product/ERP5/tests/testAccountingReports.py
index 127d8925e9..008d4251fe 100644
--- a/product/ERP5/tests/testAccountingReports.py
+++ b/product/ERP5/tests/testAccountingReports.py
@@ -1106,6 +1106,19 @@ class TestAccountingReports(AccountingTestCase):
     line_list = self.getListBoxLineList(report_section_list[0])
     data_line_list = [l for l in line_list if l.isDataLine()]
     
+    # The box showing parameters summary in
+    # Account_viewAccountingTransactionList is not rendered here.
+    report_section = report_section_list[0]
+    report_section.pushReport(self.portal)
+    form = getattr(self.portal, report_section.form_id)
+    # we test that this form only shows a listbox
+    for group in form.get_groups():
+      if group != 'hidden':
+        for field in form.get_fields_in_group(group):
+          if field.getId() != 'listbox':
+            self.fail('Field %s should not be visible', field.getId())
+    report_section.popReport(self.portal)
+    
     # report layout
     self.assertEquals(['Movement_getSpecificReference',
         'Movement_getExplanationTitle', 'date',
-- 
2.30.9