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

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

src/c/e/ceilometer-HEAD/ceilometer/tests/compute/pollsters/test_diskio.py   ceilometer(Download)
        cache = {}
        samples = list(pollster.get_samples(mgr, cache, [self.instance]))
        self.assertIsNotEmpty(samples)
        self.assertIn(pollster.CACHE_KEY_DISK, cache)
        self.assertIn(self.instance.name, cache[pollster.CACHE_KEY_DISK])
        cache = {}
        samples = list(pollster.get_samples(mgr, cache, [self.instance]))
        self.assertIsNotEmpty(samples)
        self.assertIsNotNone(samples)
        self.assertIn(pollster.CACHE_KEY_DISK_RATE, cache)