test of document page history workflow added

This commit is contained in:
Gervais Naoussi
2015-12-16 12:40:02 +01:00
parent 9182b4e307
commit d3e7a11b7c
2 changed files with 61 additions and 4 deletions

View File

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