def test_returns_genome(self):

        class Genome(object):
            """
            A simple representation of a genome.
            """

            def __init__(self, fitness):
                self.fitness = fitness

        population = [Genome(random.uniform(0.1, 10.0)) for i in range(4)]
        result = roulette_wheel_selection(population)
        self.assertIsInstance(result, Genome,
            "Expected result of roulette_wheel_selection is not a Genome")
Returns whether or not the user has exceeded their throttle limit.
dataset/ETHPy150Open ntoll/foox/test/test_ga.py/TestRouletteWheelSelection.test_returns_genome--crossover with--dataset/ETHPy150Open hzlf/openbroadcast/website/apps/tastypie/throttle.py/CacheThrottle.should_be_throttled