Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/q/l/qless-core-HEAD/test/test_stats.py   qless-core(Download)
        stats = self.lua('stats', 0, 'queue', 0)
        self.assertEqual(stats['wait']['count'], 20)
        self.assertAlmostEqual(stats['wait']['mean'], 9.5)
        self.assertAlmostEqual(stats['wait']['std'], 5.916079783099)
        self.assertEqual(stats['wait']['histogram'][0:20], [1] * 20)
        stats = self.lua('stats', 0, 'queue', 0)
        self.assertEqual(stats['run']['count'], 20)
        self.assertAlmostEqual(stats['run']['mean'], 9.5)
        self.assertAlmostEqual(stats['run']['std'], 5.916079783099)
        self.assertEqual(stats['run']['histogram'][0:20], [1] * 20)