

def test_timer_context(self):
    with stats.Timer('foo'):
        pass
    line = mockserver.readline()
    line.assertNotEqual(re.match('^foo:[0-9\\.]+|ms$', line), None)
    self.assertNotEqual(line.split('|', 1)[0].split(':', 1)[1], '0.000000')

dataset/ETHPy150Open uber/clay/tests/test_stats.py TestStats.test_timer_context/VarMisuse@31/38 `self`->`line`