def test_generate_timespan_finite(self):
        scheduler = TestScheduler()

        def create():
            return Observable.generate_with_relative_time(0,
                lambda x: 3 <= x,
                lambda x: x + 1,
                lambda x: x,
                lambda x: x + 1,
                scheduler=scheduler)

        results = scheduler.start(create)
        results.messages.assert_equal(on_next(202, 0), on_next(204, 1), on_next(207, 2), on_next(211, 3), on_completed(211))
dataset/ETHPy150Open ReactiveX/RxPY/tests/test_observable/test_generatewithrelativetime.py/TestGenerateWithRelativeTime.test_generate_timespan_finite/swapped operands of `<=`