def test_noncopyable_unordered_map(): from pybind11_tests import get_umnc mnc = get_umnc(5) for i in range(1, 6): assert mnc[i].value == 10 * i vsum = 0 for k, v in mnc.items(): assert v.value == 10 * k vsum += v.value assert vsum == 150