

def test_qt_cursor(self):
    ' Does the Qt kill ring maintain state with cursor movement?\n        '
    text_edit = QtGui.QPlainTextEdit()
    ring = QtKillRing(text_edit)
    ring.kill('foo')
    ring.kill('bar')
    ring.yank()
    text_edit.moveCursor(QtGui.QTextCursor.Left)
    ring.rotate()
    ring.assertEqual(text_edit.toPlainText(), 'bar')

dataset/ETHPy150Open ipython/ipython-py3k/IPython/frontend/qt/console/tests/test_kill_ring.py TestKillRing.test_qt_cursor/VarMisuse@64/114 `self`->`ring`