コード例 #1
0
ファイル: time_test.py プロジェクト: techtonik/Shiboken
 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
ファイル: time_test.py プロジェクト: techtonik/Shiboken
 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
ファイル: time_test.py プロジェクト: techtonik/Shiboken
 def testSimpleMethodWithoutParamers(self):
     '''Constructor without parameters: Time.setTime()'''
     time = Time(1, 2, 3, 4)
     time.setTime()
     self.assertTrue(time.isNull())