@@ -9,14 +9,16 @@ class TestDocumentPageApproval(common.TransactionCase):
9
9
def test_get_display_content (self ):
10
10
"""Test page display content."""
11
11
# Check content of a category
12
- category = self .env ['document.page' ].search (
13
- [('name' , '=' , 'OpenERP Features' )])
12
+ category = self .env ['document.page' ].search ([
13
+ ('name' , '=' , 'OpenERP Features' )
14
+ ])
14
15
15
16
self .assertIsNotNone (category .display_content , 'a category' )
16
17
17
18
# Check content of a page
18
- pages = self .env ['document.page' ].search (
19
- [('parent_id' , '=' , category .id )])
19
+ pages = self .env ['document.page' ].search ([
20
+ ('parent_id' , '=' , category .id )
21
+ ])
20
22
page = pages [0 ]
21
23
self .assertIsNotNone (page .display_content , 'Page content' )
22
24
@@ -32,4 +34,4 @@ def test_get_display_content(self):
32
34
self .assertTrue (page .is_approval_required (page ))
33
35
34
36
# Check if parent approval is required
35
- self .assertFalse (page .is_parent_approval_required )
37
+ self .assertTrue (page .is_parent_approval_required )
0 commit comments