예제 #1
0
  def test_find(self):
    prof = [Property(100),Property(200),Property(300)]
    index = CORBA_SeqUtil.find(prof,FunctorFind(300))
    self.assertEqual(index, 2)

    index = CORBA_SeqUtil.find(prof,FunctorFind(3000))
    self.assertEqual(index, -1)