[pywin32-checkins] pywin32/win32/test test_win32api.py,1.7,1.8
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2005-03-04 11:51:00
|
Update of /cvsroot/pywin32/pywin32/win32/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6593/test Modified Files: test_win32api.py Log Message: Add GetDateFormat/GetTimeFormat Index: test_win32api.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/test/test_win32api.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** test_win32api.py 13 Jul 2004 07:12:46 -0000 1.7 --- test_win32api.py 4 Mar 2005 11:50:32 -0000 1.8 *************** *** 11,15 **** self.failUnless(name == win32api.GetUserNameEx(win32api.NameSamCompatible)) ! class TimeZone(unittest.TestCase): def testTimezone(self): # GetTimeZoneInformation --- 11,15 ---- self.failUnless(name == win32api.GetUserNameEx(win32api.NameSamCompatible)) ! class TestTime(unittest.TestCase): def testTimezone(self): # GetTimeZoneInformation *************** *** 21,26 **** tz_str = tzinfo[1] tz_time = tzinfo[2] ! print "Time zone in effect is", tz_str.encode() ! print "Next timezone change happens at", tz_time.Format() class Registry(unittest.TestCase): --- 21,40 ---- tz_str = tzinfo[1] tz_time = tzinfo[2] ! # for the sake of code exercise but don't output ! tz_str.encode() ! tz_time.Format() ! def TestDateFormat(self): ! DATE_LONGDATE = 2 ! date_flags = DATE_LONGDATE ! win32api.GetDateFormat(0, date_flags, None) ! win32api.GetDateFormat(0, date_flags, 0) ! win32api.GetDateFormat(0, date_flags, datetime.datetime.now()) ! win32api.GetDateFormat(0, date_flags, time.time()) ! def TestTimeFormat(self): ! win32api.GetTimeFormat(0, 0, None) ! win32api.GetTimeFormat(0, 0, 0) ! win32api.GetTimeFormat(0, 0, datetime.datetime.now()) ! win32api.GetTimeFormat(0, 0, time.time()) ! class Registry(unittest.TestCase): |