19 sys.path.insert(1,
"../")
42 return self.
_id == prof.id
51 OpenRTM_aist.Manager.instance().shutdownManager()
58 CORBA_SeqUtil.for_each(add_,func_)
59 self.assertEqual(list_, [0,1,2,3,4,5,6,7])
65 self.assertEqual(index, 2)
68 self.assertEqual(index, -1)
73 CORBA_SeqUtil.push_back(list_,100)
74 self.assertEqual(list_, [0,1,2,3,100])
80 CORBA_SeqUtil.push_back_list(list1,list2)
81 self.assertEqual(list1, [0,1,2,3,4,5,6,7])
86 CORBA_SeqUtil.insert(list_,
"INS", 1)
87 self.assertEqual(list_, [0,
"INS",1,2])
89 CORBA_SeqUtil.insert(list_, 10, 100)
90 self.assertEqual(list_, [0,
"INS",1,2,10])
95 self.assertEqual(CORBA_SeqUtil.front(list_),3)
100 self.assertEqual(CORBA_SeqUtil.back(list_),6)
105 CORBA_SeqUtil.erase(list_, 10)
106 self.assertEqual(list_, [9,8,7,6])
108 CORBA_SeqUtil.erase(list_, 1)
109 self.assertEqual(list_, [9,7,6])
115 self.assertEqual(len(prof), 3)
118 self.assertEqual(len(prof), 2)
122 list_ = [0,1,2,3,4,5]
123 CORBA_SeqUtil.clear(list_)
124 self.assertEqual(list_,[])
132 if __name__ ==
'__main__':
def __init__(self, lists)
def test_refToVstring(self)
def test_push_back_list(self)