<s> import unittest <EOL> from collections import defaultdict <EOL> from spyder . core . queueselector import BiasedQueueSelector <EOL> class BiasedQueueSelectorTest ( unittest . TestCase ) : <EOL> def test_histogram ( self ) : <EOL> selector = BiasedQueueSelector ( <NUM_LIT:10> ) <EOL> histogram = defaultdict ( int ) <EOL> for i in xrange ( <NUM_LIT> ) : <EOL> histogram [ selector . get_queue ( ) ] += <NUM_LIT:1> <EOL> for i in range ( <NUM_LIT:1> , <NUM_LIT:9> ) : <EOL> self . assertTrue ( histogram [ i ] > histogram [ i + <NUM_LIT:1> ] ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
