def test_noncopyable_deque(): from pybind11_tests import get_dnc dnc = get_dnc(5) for i in range(0, 5): assert dnc[i].value == i + 1 i = 1 for j in dnc: assert(j.value == i) i += 1