Changeset 8181 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 16 Apr 2012, 16:03:10 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_student.py
r7811 r8181 18 18 """Tests for students and related. 19 19 """ 20 from datetime import tzinfo 20 21 from zope.component.interfaces import IFactory 21 22 from zope.interface import verify … … 77 78 TypeError, studylevel.addCourseTicket, department) 78 79 80 def test_booking_date(self): 81 isinstance(self.bedticket.booking_date.tzinfo, tzinfo) 82 self.assertEqual(str(self.bedticket.booking_date.tzinfo), 'UTC') 83 return 84 79 85 class StudentFactoryTest(FunctionalTestCase): 80 86 -
main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py
r8084 r8181 21 21 import grok 22 22 import string 23 import pytz 24 from random import SystemRandom as r 23 25 from zope.i18n import translate 24 26 from zope.interface import implements 25 from random import SystemRandom as r26 27 from waeup.kofa.interfaces import IKofaUtils 27 28 from waeup.kofa.interfaces import MessageFactory as _ … … 166 167 return send_mail( 167 168 from_name,from_addr,rcpt_name,rcpt_addr,subject,body,config) 169 170 @property 171 def tzinfo(self): 172 # For Nigeria: pytz.timezone('Africa/Lagos') 173 return pytz.utc 168 174 169 175 def fullname(self,firstname,lastname,middlename=None):
Note: See TracChangeset for help on using the changeset viewer.