def test_histogram(self):

        # create a selector with 10 queues
        selector = BiasedQueueSelector(10)

        histogram = defaultdict(int)

        for i in xrange(100000):
            histogram[selector.get_queue()] += 1

        for i in range(1,9):
            self.assertTrue(histogram[i] > histogram[i+1])
dataset/ETHPy150Open retresco/Spyder/test/test_queue_selector.py/BiasedQueueSelectorTest.test_histogram/original