39 from python_qt_binding.QtGui
import QStandardItem, QStandardItemModel
40 from rqt_reconfigure.rqt_ros_graph
import RqtRosGraph
50 unittest.TestCase.setUp(self)
53 node1 = QStandardItem(
'node1')
56 node1_1_2 = QStandardItem(
'node1_1_2')
57 node1_2 = QStandardItem(
'node1_2')
61 self._node1_1.appendRow(node1_1_2)
62 node1.appendRow(node1_2)
64 self._model.appendRow(node1)
73 unittest.TestCase.tearDown(self)
77 self.assertEqual(RqtRosGraph.get_upper_grn(self._node1_1_1.index(),
''),
85 self.assertEqual(RqtRosGraph.get_full_grn(self._node1_1_1.index()),
89 if __name__ ==
'__main__':
def test_get_upper_grn(self)
def test_get_full_grn(self)
def test_get_lower_grn_dfs(self)