def testInitializeNowFunction_windows(self): if not (sys.platform.startswith(trace_time._PLATFORMS['windows']) or sys.platform.startswith(trace_time._PLATFORMS['cygwin'])): return True trace_time.InitializeNowFunction(sys.platform) self.assertTrue(trace_time.GetClock() == trace_time._WIN_HIRES or trace_time.GetClock() == trace_time._WIN_LORES)
def testInitializeNowFunction_mac(self): if not sys.platform.startswith(trace_time._PLATFORMS['mac']): return True trace_time.InitializeNowFunction(sys.platform) self.assertEqual(trace_time.GetClock(), trace_time._MAC_CLOCK)