

def test_getitem(self):
    top = _nested_model()
    top.run()
    self.assertEqual(set(top.sub._system.vec['u'].keys()), set([('b2', ('comp2.b', 'b2')), ('b6', ('comp6.b', 'b6')), ('b4', ('comp4.b', 'b4')), ('a3', ('comp3.a', 'a3')), ('a1', ('comp1.a', 'a1')), ('comp2.c', ('c2',)), ('comp2.d', ('comp5.b',)), ('comp3.c', ('comp5.a',)), ('comp3.d', ('d3',)), ('comp5.c', ('comp1.b',)), ('comp5.d', ('d5',)), ('comp1.c', ('comp4.a',)), ('comp1.d', ('d1',)), ('comp4.c', ('c4',)), ('comp4.d', ('comp6.a',))]))
    top.assertEqual(top.sub._system.vec['u'].array.size, 15)

dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/test/test_vecwrapper.py VecWrapperTestCase.test_getitem/VarMisuse@190/344 `self`->`top`