def test_thunking_map_evaluates_source(): x = Stream(loop(False)) y = x.map(lambda t: True) y[100] assert y._thunked() == 101 assert x._thunked() == 101