Ignore:
Timestamp:
23 Sep 2016, 05:54:20 (8 years ago)
Author:
Henrik Bettermann
Message:

Renaming 2

Location:
main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/documents/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/documents/tests/test_browser.py

    r14178 r14181  
    2727from zope.interface.verify import verifyObject, verifyClass
    2828from waeup.ikoba.documents.tests.test_batching import DocumentImportExportSetup
    29 from ikobacustom.uniben.documents.document import SkeletonDocument
    30 from ikobacustom.uniben.documents.export import SkeletonDocumentExporter
    31 from ikobacustom.uniben.documents.batching import SkeletonDocumentProcessor
     29from ikobacustom.uniben.documents.document import UnibenDocument
     30from ikobacustom.uniben.documents.export import UnibenDocumentExporter
     31from ikobacustom.uniben.documents.batching import UnibenDocumentProcessor
    3232from ikobacustom.uniben.testing import FunctionalLayer
    3333
     
    3838
    3939    def setup_for_export(self):
    40         document = SkeletonDocument()
     40        document = UnibenDocument()
    4141        document.document_id = u'DOC1'
    4242        document.title = u'My first document'
     
    4949        # set values we can expect in export file
    5050        self.setup_for_export()
    51         exporter = SkeletonDocumentExporter()
     51        exporter = UnibenDocumentExporter()
    5252        exporter.export_all(self.app, self.outfile)
    5353        result = open(self.outfile, 'rb').read()
     
    5555            'class_name,description,document_id,history,state,title,'
    5656            'users_with_local_roles\r\n'
    57             'SkeletonDocument,,DOC1,'
     57            'UnibenDocument,,DOC1,'
    5858            '[u\'2014-12-21 23:27:15 WAT - Document created by system\'],'
    5959            'created,My first document,[]\r\n')
    6060        # We can import the same file.
    61         processor = SkeletonDocumentProcessor()
     61        processor = UnibenDocumentProcessor()
    6262        result = processor.doImport(
    6363            self.outfile,
     
    7979        self.assertEqual(num_fail,0)
    8080        # We can import the same file in update mode.
    81         processor = SkeletonDocumentProcessor()
     81        processor = UnibenDocumentProcessor()
    8282        result = processor.doImport(
    8383            self.outfile,
  • main/ikobacustom.uniben/trunk/src/ikobacustom/uniben/documents/tests/test_document.py

    r14178 r14181  
    2424
    2525from ikobacustom.uniben.testing import (FunctionalLayer, FunctionalTestCase)
    26 from ikobacustom.uniben.documents.document import SkeletonDocument
    27 from ikobacustom.uniben.documents.interfaces import ISkeletonDocument
     26from ikobacustom.uniben.documents.document import UnibenDocument
     27from ikobacustom.uniben.documents.interfaces import IUnibenDocument
    2828
    29 class SkeletonDocumentTestCase(FunctionalTestCase):
     29class UnibenDocumentTestCase(FunctionalTestCase):
    3030
    3131    layer = FunctionalLayer
     
    3535        self.assertTrue(
    3636            verifyClass(
    37                 ISkeletonDocument, SkeletonDocument)
     37                IUnibenDocument, UnibenDocument)
    3838            )
    3939        self.assertTrue(
    4040            verifyObject(
    41                 ISkeletonDocument, SkeletonDocument())
     41                IUnibenDocument, UnibenDocument())
    4242            )
    4343        return
    4444
    45     def test_addSkeletonDocument(self):
     45    def test_addUnibenDocument(self):
    4646        container = DocumentsContainer()
    47         document = createObject(u'waeup.SkeletonDocument')
     47        document = createObject(u'waeup.UnibenDocument')
    4848        document.document_id = u'DOC1'
    4949        container.addDocument(document)
Note: See TracChangeset for help on using the changeset viewer.