Changeset 12266 for main/waeup.ikoba/trunk/src/waeup/ikoba/documents/tests
- Timestamp:
- 19 Dec 2014, 16:17:17 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba/documents/tests
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/documents/tests/test_batching.py
r12257 r12266 79 79 80 80 def setup_for_export(self): 81 document = PDFDocument() 82 self.app['documents'][document.document_id] = self.document = document 81 document1 = PDFDocument() 82 document1.document_id = u'DOC1' 83 self.app['documents'].addDocument(document1) 84 self.pdfdocument = document1 83 85 self.outfile = os.path.join(self.workdir, 'myoutput.csv') 84 role_manager = IPrincipalRoleManager(document) 86 role_manager = IPrincipalRoleManager(document1) 87 role_manager.assignRoleToPrincipal(u'johnsrole', u'john') 88 89 document2 = HTMLDocument() 90 document2.document_id = u'DOC2' 91 self.app['documents'].addDocument(document2) 92 self.htmldocument = document2 93 self.outfile = os.path.join(self.workdir, 'myoutput.csv') 94 role_manager = IPrincipalRoleManager(document2) 85 95 role_manager.assignRoleToPrincipal(u'johnsrole', u'john') 86 96 return
Note: See TracChangeset for help on using the changeset viewer.