def setUp(self):
super().setUp()
QApplication.instance().processEvents()
QTest.qWait(self.WAIT_TIMEOUT_BEFORE_NEW)
self.form.add_protocol_file(get_path_for_data_file("protocol.proto.xml"))
self.cframe = self.form.compare_frame_controller
self.cframe.add_protocol_label(9, 19, 0, 0, edit_label_name=False) # equals 10-20 in view
self.cframe.add_protocol_label(39, 54, 1, 0, edit_label_name=False) # equals 40-55 in view
self.assertEqual(len(self.cframe.proto_analyzer.protocol_labels), 2)
self.dialog = ProtocolLabelController(preselected_index=1,
message=self.cframe.proto_analyzer.messages[0],
viewtype=0, parent=self.cframe)
if self.SHOW:
self.dialog.show()
评论列表
文章目录