Changeset 7819 for main/waeup.kofa/trunk/src/waeup/kofa/tests
- Timestamp:
- 8 Mar 2012, 22:28:46 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/tests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/tests/test_authentication.py
r7811 r7819 24 24 from waeup.kofa.testing import FunctionalTestCase, FunctionalLayer 25 25 from waeup.kofa.authentication import ( 26 UserAuthenticatorPlugin, Account, K OFAPrincipalInfo,26 UserAuthenticatorPlugin, Account, KofaPrincipalInfo, 27 27 get_principal_role_manager) 28 28 … … 64 64 result2 = plugin.authenticateCredentials( 65 65 dict(login='bob', password='nonsense')) 66 self.assertTrue(isinstance(result1, K OFAPrincipalInfo))66 self.assertTrue(isinstance(result1, KofaPrincipalInfo)) 67 67 self.assertTrue(result2 is None) 68 68 return … … 73 73 result1 = plugin.principalInfo('bob') 74 74 result2 = plugin.principalInfo('manfred') 75 self.assertTrue(isinstance(result1, K OFAPrincipalInfo))75 self.assertTrue(isinstance(result1, KofaPrincipalInfo)) 76 76 self.assertTrue(result2 is None) 77 77 return -
main/waeup.kofa/trunk/src/waeup/kofa/tests/test_interfaces.py
r7811 r7819 48 48 # Register a role not visible to waeup portal as its name does 49 49 # not start with 'waeup.' 50 class NonK OFARole(grok.Role):50 class NonKofaRole(grok.Role): 51 51 grok.name('nonwaeup.testrole') 52 52 grok.title('Role not suitable for waeup') 53 53 grok.permissions('waeup.Public') 54 54 grok.testing.grok_component('SomeRole', SomeRole) 55 grok.testing.grok_component('NonK OFARole', NonKOFARole)55 grok.testing.grok_component('NonKofaRole', NonKofaRole) 56 56 return 57 57 -
main/waeup.kofa/trunk/src/waeup/kofa/tests/test_objecthistory.py
r7811 r7819 26 26 from zope.security.testing import Principal, Participation 27 27 from waeup.kofa.app import University 28 from waeup.kofa.interfaces import IObjectHistory, IK OFAObject28 from waeup.kofa.interfaces import IObjectHistory, IKofaObject 29 29 from waeup.kofa.testing import FunctionalTestCase, FunctionalLayer 30 30 from waeup.kofa.objecthistory import ObjectHistory 31 31 32 32 class SampleObject(grok.Model): 33 grok.implements(IK OFAObject)33 grok.implements(IKofaObject) 34 34 pass 35 35 -
main/waeup.kofa/trunk/src/waeup/kofa/tests/test_smtp.py
r7811 r7819 328 328 'test program', 'no-reply@waeup.org', 329 329 'test mail receiver', EXTERNAL_MAIL_RECEIVER, 330 'Test Mail from WAeUP K OFA',330 'Test Mail from WAeUP Kofa', 331 331 'Hi from test mailer!\n\nRegards,\nTest Programme\n' 332 332 ) … … 345 345 'test program', 'no-reply@waeup.org', 346 346 'test mail receiver', EXTERNAL_MAIL_RECEIVER, 347 'Test Mail from WAeUP K OFA',347 'Test Mail from WAeUP Kofa', 348 348 'Hi from test mailer!\n\nRegards,\nTest Programme\n' 349 349 )
Note: See TracChangeset for help on using the changeset viewer.