Ignore:
Timestamp:
8 Mar 2012, 19:00:51 (13 years ago)
Author:
uli
Message:

Rename all non-locales stuff from sirp to kofa.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/tests
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/tests/test_app.py

    r7193 r7811  
    2222from zope.component.hooks import setSite
    2323from zope.interface.verify import verifyClass, verifyObject
    24 from waeup.sirp.app import University
    25 from waeup.sirp.interfaces import IUniversity
    26 from waeup.sirp.testing import FunctionalLayer, FunctionalTestCase
     24from waeup.kofa.app import University
     25from waeup.kofa.interfaces import IUniversity
     26from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase
    2727
    2828class UniversityTests(FunctionalTestCase):
  • main/waeup.kofa/trunk/src/waeup/kofa/tests/test_authentication.py

    r7290 r7811  
    2222from zope.pluggableauth.interfaces import IAuthenticatorPlugin
    2323from zope.securitypolicy.interfaces import IPrincipalRoleManager
    24 from waeup.sirp.testing import FunctionalTestCase, FunctionalLayer
    25 from waeup.sirp.authentication import (
    26     UserAuthenticatorPlugin, Account, SIRPPrincipalInfo,
     24from waeup.kofa.testing import FunctionalTestCase, FunctionalLayer
     25from waeup.kofa.authentication import (
     26    UserAuthenticatorPlugin, Account, KOFAPrincipalInfo,
    2727    get_principal_role_manager)
    2828
     
    6464        result2 = plugin.authenticateCredentials(
    6565            dict(login='bob', password='nonsense'))
    66         self.assertTrue(isinstance(result1, SIRPPrincipalInfo))
     66        self.assertTrue(isinstance(result1, KOFAPrincipalInfo))
    6767        self.assertTrue(result2 is None)
    6868        return
     
    7373        result1 = plugin.principalInfo('bob')
    7474        result2 = plugin.principalInfo('manfred')
    75         self.assertTrue(isinstance(result1, SIRPPrincipalInfo))
     75        self.assertTrue(isinstance(result1, KOFAPrincipalInfo))
    7676        self.assertTrue(result2 is None)
    7777        return
  • main/waeup.kofa/trunk/src/waeup/kofa/tests/test_configuration.py

    r7193 r7811  
    2020from zope.component.interfaces import IFactory
    2121from zope.interface import verify
    22 from waeup.sirp.testing import FunctionalLayer, FunctionalTestCase
    23 from waeup.sirp.configuration import (
     22from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase
     23from waeup.kofa.configuration import (
    2424    ConfigurationContainer, SessionConfiguration, SessionConfigurationFactory)
    25 from waeup.sirp.interfaces import(
     25from waeup.kofa.interfaces import(
    2626    IConfigurationContainer, ISessionConfiguration, ISessionConfigurationAdd)
    2727
  • main/waeup.kofa/trunk/src/waeup/kofa/tests/test_doctests.py

    r7193 r7811  
    1616## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    1717##
    18 """Register doctests for waeup.sirp.
     18"""Register doctests for waeup.kofa.
    1919"""
    20 from waeup.sirp.testing import get_doctest_suite
     20from waeup.kofa.testing import get_doctest_suite
    2121
    2222def test_suite():
  • main/waeup.kofa/trunk/src/waeup/kofa/tests/test_imagestorage.py

    r7193 r7811  
    2727from zope.component.hooks import setSite
    2828from zope.interface.verify import verifyClass, verifyObject
    29 from waeup.sirp.app import University
    30 from waeup.sirp.testing import FunctionalLayer, FunctionalTestCase
    31 from waeup.sirp.imagestorage import (
     29from waeup.kofa.app import University
     30from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase
     31from waeup.kofa.imagestorage import (
    3232    FileStoreNameChooser, ExtFileStore, DefaultFileStoreHandler,
    3333    DefaultStorage)
    34 from waeup.sirp.interfaces import (
     34from waeup.kofa.interfaces import (
    3535    IFileStoreNameChooser, IExtFileStore, IFileStoreHandler,)
    3636
  • main/waeup.kofa/trunk/src/waeup/kofa/tests/test_interfaces.py

    r7321 r7811  
    2020import grok
    2121import unittest
    22 from waeup.sirp.interfaces import DuplicationError, RoleSource
    23 from waeup.sirp.testing import FunctionalLayer, FunctionalTestCase
     22from waeup.kofa.interfaces import DuplicationError, RoleSource
     23from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase
    2424
    2525class DuplicationErrorTests(unittest.TestCase):
     
    4848        # Register a role not visible to waeup portal as its name does
    4949        # not start with 'waeup.'
    50         class NonSIRPRole(grok.Role):
     50        class NonKOFARole(grok.Role):
    5151            grok.name('nonwaeup.testrole')
    5252            grok.title('Role not suitable for waeup')
    5353            grok.permissions('waeup.Public')
    5454        grok.testing.grok_component('SomeRole', SomeRole)
    55         grok.testing.grok_component('NonSIRPRole', NonSIRPRole)
     55        grok.testing.grok_component('NonKOFARole', NonKOFARole)
    5656        return
    5757
  • main/waeup.kofa/trunk/src/waeup/kofa/tests/test_objecthistory.py

    r7372 r7811  
    2525from zope.security.management import newInteraction, endInteraction
    2626from zope.security.testing import Principal, Participation
    27 from waeup.sirp.app import University
    28 from waeup.sirp.interfaces import IObjectHistory, ISIRPObject
    29 from waeup.sirp.testing import FunctionalTestCase, FunctionalLayer
    30 from waeup.sirp.objecthistory import ObjectHistory
     27from waeup.kofa.app import University
     28from waeup.kofa.interfaces import IObjectHistory, IKOFAObject
     29from waeup.kofa.testing import FunctionalTestCase, FunctionalLayer
     30from waeup.kofa.objecthistory import ObjectHistory
    3131
    3232class SampleObject(grok.Model):
    33     grok.implements(ISIRPObject)
     33    grok.implements(IKOFAObject)
    3434    pass
    3535
  • main/waeup.kofa/trunk/src/waeup/kofa/tests/test_schoolgrades.py

    r7795 r7811  
    22import unittest
    33from zope.interface.verify import verifyObject, verifyClass
    4 from waeup.sirp.interfaces import IResultEntry, IResultEntryField
    5 from waeup.sirp.schoolgrades import ResultEntry, ResultEntryField
     4from waeup.kofa.interfaces import IResultEntry, IResultEntryField
     5from waeup.kofa.schoolgrades import ResultEntry, ResultEntryField
    66
    77class ResultEntryTests(unittest.TestCase):
  • main/waeup.kofa/trunk/src/waeup/kofa/tests/test_smtp.py

    r7506 r7811  
    2727from zope.component.hooks import setSite
    2828from zope.sendmail.interfaces import IMailDelivery
    29 from waeup.sirp.app import University
    30 from waeup.sirp.interfaces import IMailService
    31 from waeup.sirp.smtp import (
     29from waeup.kofa.app import University
     30from waeup.kofa.interfaces import IMailService
     31from waeup.kofa.smtp import (
    3232    encode_header_item, encode_address, encode_body, FakeSMTPDelivery,
    3333    send_mail)
    34 from waeup.sirp.testing import FunctionalLayer, FunctionalTestCase
     34from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase
    3535
    3636#
     
    328328            'test program', 'no-reply@waeup.org',
    329329            'test mail receiver', EXTERNAL_MAIL_RECEIVER,
    330             'Test Mail from WAeUP SIRP',
     330            'Test Mail from WAeUP KOFA',
    331331            'Hi from test mailer!\n\nRegards,\nTest Programme\n'
    332332            )
     
    345345            'test program', 'no-reply@waeup.org',
    346346            'test mail receiver', EXTERNAL_MAIL_RECEIVER,
    347             'Test Mail from WAeUP SIRP',
     347            'Test Mail from WAeUP KOFA',
    348348            'Hi from test mailer!\n\nRegards,\nTest Programme\n'
    349349            )
  • main/waeup.kofa/trunk/src/waeup/kofa/tests/test_waeup.py

    r7193 r7811  
    1717##
    1818"""
    19 Test setup for the waeup.sirp package.
     19Test setup for the waeup.kofa package.
    2020"""
    2121import grok
     
    2323import zope.component.eventtesting
    2424from zope.testing import renormalizing
    25 from waeup.sirp.testing import FunctionalLayer
     25from waeup.kofa.testing import FunctionalLayer
    2626
    2727def setUpZope(test):
     
    3232        ])
    3333
    34 # Register all tests in the waeup.sirp package
     34# Register all tests in the waeup.kofa package
    3535test_suite = grok.testing.register_all_tests(
    36     'waeup.sirp', checker=checker, usetup=setUpZope,
     36    'waeup.kofa', checker=checker, usetup=setUpZope,
    3737    layer=FunctionalLayer)
Note: See TracChangeset for help on using the changeset viewer.