def test_lazylist_copy_lazy(): mock_func = Mock() mock_func.return_value = 1 ll = LazyList([mock_func] * 10) copied_ll = ll.copy() assert len(copied_ll) == 10 assert id(ll._callables) != id(copied_ll._callables) mock_func.assert_not_called()