示例#1
0
 def testEmptyValue(self):
     self.assertEquals(convert_time(''), '')
示例#2
0
 def testNoneValue(self):
     self.assertEquals(convert_time(None), '')
示例#3
0
 def testNoonTimeConversion(self):
     self.assertEquals(convert_time('12:30:10PM'), '12:30:10')
示例#4
0
 def testMidnightTimeConversion(self):
     self.assertEquals(convert_time('12:30:10AM'), '00:30:10')
示例#5
0
 def testPmTimeConversion(self):
     self.assertEquals(convert_time('07:05:45PM'), '19:05:45')
示例#6
0
 def testAmTimeConversion(self):
     self.assertEquals(convert_time('07:05:45AM'), '07:05:45')