Changeset 8182 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 16 Apr 2012, 20:56:59 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r8119 r8182 26 26 import grok 27 27 from zope.event import notify 28 from zope.component import createObject, queryUtility 28 from zope.component import createObject, queryUtility, getUtility 29 29 from zope.component.hooks import setSite, clearSite 30 30 from zope.catalog.interfaces import ICatalog … … 40 40 from waeup.kofa.university.faculty import Faculty 41 41 from waeup.kofa.university.department import Department 42 from waeup.kofa.interfaces import IUserAccount 42 from waeup.kofa.interfaces import IUserAccount, IKofaUtils 43 43 from waeup.kofa.authentication import LocalRoleSetEvent 44 44 from waeup.kofa.hostels.hostel import Hostel, Bed, NOT_OCCUPIED … … 121 121 # Create 5 access codes with prefix'PWD' 122 122 pin_container = self.app['accesscodes'] 123 tz = getUtility(IKofaUtils).tzinfo 123 124 pin_container.createBatch( 124 datetime.now( ), 'some_userid', 'PWD', 9.99, 5)125 datetime.now(tz), 'some_userid', 'PWD', 9.99, 5) 125 126 pins = pin_container['PWD-1'].values() 126 127 self.pwdpins = [x.representation for x in pins]
Note: See TracChangeset for help on using the changeset viewer.