# -*- coding: utf-8 -*- # © 2016 Therp BV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from lxml import etree from openerp.tests.common import TransactionCase class TestAccountFinancialReportHorizontal(TransactionCase): def test_account_financial_report_horizontal(self): action = self.env['accounting.report'].with_context( active_id=self.env.ref('account.menu_account_report_pl').id, active_model='ir.ui.view', ).create({}).check_report() data = action['data'] html = self.env['report'].with_context(action['context']).get_html( self.env[data['model']].browse(data['ids']), action['report_name'], data=data, ) self.assertTrue(etree.fromstring(html).xpath('//div[@class="row"]'))