1from PyObjCTools.TestSupport import * 2from Quartz import * 3 4class TestCVHostTime (TestCase): 5 def testFunctions(self): 6 v = CVGetCurrentHostTime() 7 self.assertIsInstance(v, (int, long)) 8 9 v = CVGetHostClockFrequency() 10 self.assertIsInstance(v, float) 11 12 v = CVGetHostClockMinimumTimeDelta() 13 self.assertIsInstance(v, (int, long)) 14 15if __name__ == "__main__": 16 main() 17