41 from rqt_py_common.msg
import Val, ArrayVal
42 m = MessageTreeModel()
43 m.add_message(ArrayVal())
44 root = m.item(0).child(0)
45 self.assertEqual(root._path,
'/vals')
48 self.assertEqual(child._path,
'/vals[%s]' % i)
49 child = child.child(0)
50 self.assertEqual(child._path,
'/vals[%s]/floats' % i)
52 self.assertEqual(child.child(j)._path,
'/vals[%s]/floats[%s]' % (i, j))
55 if __name__ ==
'__main__':
def test_path_names(self)