

def test_get_clock_info(self):
    clocks = ['clock', 'perf_counter', 'process_time', 'time']
    if hasattr(time, 'monotonic'):
        clocks.append('monotonic')
    for name in clocks:
        info = time.get_clock_info(name)
        self.assertIsInstance(info.implementation, str)
        self.assertNotEqual(info.implementation, '')
        self.assertIsInstance(info.monotonic, bool)
        self.assertIsInstance(info.resolution, float)
        self.assertGreater(info.resolution, 0.0)
        self.assertLessEqual(info.resolution, 1.0)
        self.assertIsInstance(info.adjustable, bool)
    self.assertRaises(ValueError, time.get_clock_info, 'xxx')

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_time.py TimeTestCase.test_get_clock_info/original