CI error corrected

This commit is contained in:
Gervais Naoussi 2015-12-16 12:47:51 +01:00
parent d3e7a11b7c
commit 4ef00a8b9a

View File

@ -9,9 +9,11 @@ class TestDocumentPageApproval(common.TransactionCase):
def test_get_display_content(self):
"""Test page display content."""
# Check content of a category
category = self.ref('document_page.demo_category1')
category = self.env['document.page'].search([
('name', '=', 'OpenERP Features')
])
self.assertIsNotNone(category.display_content)
self.assertIsNotNone(category.display_content, 'a category')
# Check content of a page
pages = self.env['document.page'].search([