def test_console(self):
        QTest.keyClick(self.win.console, Qt.Key_1)
        QTest.keyClick(self.win.console, Qt.Key_Plus)
        QTest.keyClick(self.win.console, Qt.Key_1)
        lines = self.win.console.get_line_count()
        self.assertEqual(
            self.win.console.get_text_line(1 - lines), '>>> 1+1')

        QTest.keyClick(self.win.console, Qt.Key_Enter)
        lines = self.win.console.get_line_count()
        self.assertEqual(self.win.console.get_text_line(lines - 1), '>>> ')
dataset/ETHPy150Open rproepp/spykeviewer/spykeviewer/tests/test_main_window.py/TestMainWindow.test_console/swapped operands of `-`