def test_qt_basic(self):
        text_edit = QtGui.QPlainTextEdit()
        ring = QtKillRing(text_edit)

        ring.kill('foo')
        ring.kill('bar')
        ring.yank()
        ring.rotate()
        ring.yank()
        self.assertEqual(text_edit.toPlainText(), 'foobar')

        text_edit.clear()
        ring.kill('baz')
        ring.yank()
        ring.rotate()
        ring.rotate()
        ring.rotate()
        self.assertEqual(text_edit.toPlainText(), 'foo')
Does the Qt kill ring work?
dataset/ETHPy150Open ipython/ipython-py3k/IPython/frontend/qt/console/tests/test_kill_ring.py/TestKillRing.test_qt_basic