Пример #1
0
 def test_ctime2MythTime_BadInputRaisesValueError(self):
     # PLATFORM ISSUE: Throws exception on windows but returns 19691231175959 on linux
     try:
         t = ctime2MythTime(-1)
         log.warn('Expected failure for time = -1 : %s' % t)
     except ValueError, ve:
         log.debug('Pass: %s' % ve)
Пример #2
0
 def test_ctime2MythTime_BadInputRaisesValueError(self):
     # PLATFORM ISSUE: Throws exception on windows but returns 19691231175959 on linux
     try:
         t = ctime2MythTime(-1)
         log.warn('Expected failure for time = -1 : %s' % t)
     except ValueError, ve:
         log.debug('Pass: %s' % ve)
Пример #3
0
 def test_ctime2MythTime_MinDateIntReturnsMinDate(self):
     t = ctime2MythTime(0)
     log.debug('MythTime = %s' % t)
     self.assertEqual('19691231180000', t)
Пример #4
0
 def test_ctime2MythTime_Zero_Returns_MinDate(self):
     self.assertEqual('19691231160000', ctime2MythTime(0))
     self.assertEqual('19691231160000', ctime2MythTime('0'))
Пример #5
0
 def test_ctime2MythTime_MinDateIntReturnsMinDate(self):
     t = ctime2MythTime(0)
     log.debug('MythTime = %s' % t)
     self.assertEqual('19691231180000', t)