- Timestamp:
- 5 Dec 2016, 09:14:32 (8 years ago)
- Location:
- main/ikobacustom.aaue/trunk/src/ikobacustom/aaue
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/documents/tests/test_browser.py
r12290 r14310 27 27 from zope.interface.verify import verifyObject, verifyClass 28 28 from waeup.ikoba.documents.tests.test_batching import DocumentImportExportSetup 29 from ikobacustom. skeleton.documents.document import SkeletonDocument30 from ikobacustom. skeleton.documents.export import SkeletonDocumentExporter31 from ikobacustom. skeleton.documents.batching import SkeletonDocumentProcessor32 from ikobacustom. skeleton.testing import FunctionalLayer29 from ikobacustom.aaue.documents.document import AAUEDocument 30 from ikobacustom.aaue.documents.export import AAUEDocumentExporter 31 from ikobacustom.aaue.documents.batching import AAUEDocumentProcessor 32 from ikobacustom.aaue.testing import FunctionalLayer 33 33 34 34 … … 38 38 39 39 def setup_for_export(self): 40 document = SkeletonDocument()40 document = AAUEDocument() 41 41 document.document_id = u'DOC1' 42 42 document.title = u'My first document' … … 49 49 # set values we can expect in export file 50 50 self.setup_for_export() 51 exporter = SkeletonDocumentExporter()51 exporter = AAUEDocumentExporter() 52 52 exporter.export_all(self.app, self.outfile) 53 53 result = open(self.outfile, 'rb').read() … … 55 55 'class_name,description,document_id,history,state,title,' 56 56 'users_with_local_roles\r\n' 57 ' SkeletonDocument,,DOC1,'57 'AAUEDocument,,DOC1,' 58 58 '[u\'2014-12-21 23:27:15 WAT - Document created by system\'],' 59 59 'created,My first document,[]\r\n') 60 60 # We can import the same file. 61 processor = SkeletonDocumentProcessor()61 processor = AAUEDocumentProcessor() 62 62 result = processor.doImport( 63 63 self.outfile, … … 79 79 self.assertEqual(num_fail,0) 80 80 # We can import the same file in update mode. 81 processor = SkeletonDocumentProcessor()81 processor = AAUEDocumentProcessor() 82 82 result = processor.doImport( 83 83 self.outfile, -
main/ikobacustom.aaue/trunk/src/ikobacustom/aaue/documents/tests/test_document.py
r12292 r14310 17 17 ## 18 18 """ 19 Tests for skeletondocuments.19 Tests for aaue documents. 20 20 """ 21 21 from zope.interface.verify import verifyClass, verifyObject … … 23 23 from waeup.ikoba.documents.container import DocumentsContainer 24 24 25 from ikobacustom. skeleton.testing import (FunctionalLayer, FunctionalTestCase)26 from ikobacustom. skeleton.documents.document import SkeletonDocument27 from ikobacustom. skeleton.documents.interfaces import ISkeletonDocument25 from ikobacustom.aaue.testing import (FunctionalLayer, FunctionalTestCase) 26 from ikobacustom.aaue.documents.document import AAUEDocument 27 from ikobacustom.aaue.documents.interfaces import IAAUEDocument 28 28 29 class SkeletonDocumentTestCase(FunctionalTestCase):29 class AAUEDocumentTestCase(FunctionalTestCase): 30 30 31 31 layer = FunctionalLayer … … 35 35 self.assertTrue( 36 36 verifyClass( 37 I SkeletonDocument, SkeletonDocument)37 IAAUEDocument, AAUEDocument) 38 38 ) 39 39 self.assertTrue( 40 40 verifyObject( 41 I SkeletonDocument, SkeletonDocument())41 IAAUEDocument, AAUEDocument()) 42 42 ) 43 43 return 44 44 45 def test_add SkeletonDocument(self):45 def test_addAAUEDocument(self): 46 46 container = DocumentsContainer() 47 document = createObject(u'waeup. SkeletonDocument')47 document = createObject(u'waeup.AAUEDocument') 48 48 document.document_id = u'DOC1' 49 49 container.addDocument(document)
Note: See TracChangeset for help on using the changeset viewer.