Ignore:
Timestamp:
13 Nov 2014, 16:54:17 (10 years ago)
Author:
Henrik Bettermann
Message:

Remove tools.

rename institution company.

Remove some apis from docs.

Location:
main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/tests
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/tests/test_app.py

    r11952 r11954  
    2222from zope.component.hooks import setSite
    2323from zope.interface.verify import verifyClass, verifyObject
    24 from waeup.ikoba.app import Institution
     24from waeup.ikoba.app import Company
    2525from waeup.ikoba.interfaces import (
    26     IInstitution, IJobManager, VIRT_JOBS_CONTAINER_NAME)
     26    ICompany, IJobManager, VIRT_JOBS_CONTAINER_NAME)
    2727from waeup.ikoba.testing import FunctionalLayer, FunctionalTestCase
    2828
    29 class InstitutionTests(FunctionalTestCase):
     29class CompanyTests(FunctionalTestCase):
    3030
    3131    layer = FunctionalLayer
    3232
    3333    def setUp(self):
    34         super(InstitutionTests, self).setUp()
     34        super(CompanyTests, self).setUp()
    3535        self.workdir = tempfile.mkdtemp()
    36         self.getRootFolder()['app'] = Institution()
     36        self.getRootFolder()['app'] = Company()
    3737        self.app = self.getRootFolder()['app']
    3838        return
    3939
    4040    def tearDown(self):
    41         super(InstitutionTests, self).tearDown()
     41        super(CompanyTests, self).tearDown()
    4242        shutil.rmtree(self.workdir)
    4343        return
    4444
    4545    def test_ifaces(self):
    46         institution = Institution()
    47         assert verifyClass(IInstitution, Institution)
    48         assert verifyObject(IInstitution, institution)
     46        company = Company()
     47        assert verifyClass(ICompany, Company)
     48        assert verifyObject(ICompany, company)
    4949        return
    5050
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/tests/test_imagestorage.py

    r11952 r11954  
    2727from zope.component.hooks import setSite
    2828from zope.interface.verify import verifyClass, verifyObject
    29 from waeup.ikoba.app import Institution
     29from waeup.ikoba.app import Company
    3030from waeup.ikoba.testing import FunctionalLayer, FunctionalTestCase
    3131from waeup.ikoba.imagestorage import (
     
    228228        self.fd = open(self.samplefile, 'r')
    229229        self.fd2 = open(self.otherfile, 'r')
    230         self.getRootFolder()['app'] = Institution()
     230        self.getRootFolder()['app'] = Company()
    231231        self.app = self.getRootFolder()['app']
    232232        self.app['datacenter'].setStoragePath(self.workdir)
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/tests/test_maintenance.py

    r11952 r11954  
    99from zope.component.hooks import setSite
    1010from zope.interface import Interface, implements
    11 from waeup.ikoba.app import Institution
     11from waeup.ikoba.app import Company
    1212from waeup.ikoba.maintenance import update_catalog
    1313from waeup.ikoba.testing import FunctionalTestCase, FunctionalLayer
     
    4141        super(UpdateCatalogTests, self).setUp()
    4242        # Setup a sample site for each test
    43         app = Institution()
     43        app = Company()
    4444        self.dc_root = tempfile.mkdtemp()
    4545        app['datacenter'].setStoragePath(self.dc_root)
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/tests/test_objecthistory.py

    r11952 r11954  
    2525from zope.security.management import newInteraction, endInteraction
    2626from zope.security.testing import Principal, Participation
    27 from waeup.ikoba.app import Institution
     27from waeup.ikoba.app import Company
    2828from waeup.ikoba.interfaces import IObjectHistory, IIkobaObject
    2929from waeup.ikoba.testing import FunctionalTestCase, FunctionalLayer
     
    4343
    4444        # Prepopulate ZODB
    45         app = Institution()
     45        app = Company()
    4646        self.dc_root = tempfile.mkdtemp()
    4747        app['datacenter'].setStoragePath(self.dc_root)
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/tests/test_smtp.py

    r11952 r11954  
    2727from zope.component.hooks import setSite
    2828from zope.sendmail.interfaces import IMailDelivery
    29 from waeup.ikoba.app import Institution
     29from waeup.ikoba.app import Company
    3030from waeup.ikoba.interfaces import IMailService
    3131from waeup.ikoba.smtp import (
     
    341341        super(ExternalMailerTests, self).setUp()
    342342        # Setup a sample site for each test
    343         app = Institution()
     343        app = Company()
    344344        self.dc_root = tempfile.mkdtemp()
    345345        app['datacenter'].setStoragePath(self.dc_root)
Note: See TracChangeset for help on using the changeset viewer.