

def test_ready_iterator(self):
    values = [1, 2]

    def iterator():
        while values:
            (yield)
            values.pop()
        return
    self.station.register_iter(iterator)
    for i in xrange((len(values) + 1)):
        self.assertTrue(i.station.has_ready_iterators())
        self.station.handle_iters()
    self.assertFalse(self.station.has_ready_iterators())

dataset/ETHPy150Open richo/groundstation/test/test_station.py TestStationIterator.test_ready_iterator/VarMisuse@75/83 `self`->`i`