# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.tests import common from lxml import etree class TestDefaultView(common.TransactionCase): def test_default_form_view(self): self.assertEqual( etree.tostring(self.env['test_new_api.message']._get_default_form_view()), b'
' ) self.assertEqual( etree.tostring(self.env['test_new_api.creativework.edition']._get_default_form_view()), b'' ) self.assertEqual( etree.tostring(self.env['test_new_api.mixed']._get_default_form_view()), b'' )