Пример #1
0
 def testSimpleMethodWithAllParamers(self):
     '''Simple method with all parameters: Time.setTime(int h, int m, int s = 0, int ms = 0)'''
     time = Time()
     time.setTime(1, 2, 3, 4)
     self.assertTrue(time.toString(), '01:02:03.004')
Пример #2
0
 def testSimpleMethodWithTwoParamers(self):
     '''Simple method with 2 parameters: Time.setTime(int h, int m, int s = 0, int ms = 0)'''
     time = Time()
     time.setTime(1, 2)
     self.assertTrue(time.toString(), '01:02:00.000')
Пример #3
0
 def testSimpleMethodWithoutParamers(self):
     '''Constructor without parameters: Time.setTime()'''
     time = Time(1, 2, 3, 4)
     time.setTime()
     self.assertTrue(time.isNull())