

def test_generic(self):
    ' Does the generic kill ring work?\n        '
    ring = KillRing()
    self.assert_((ring.yank() is None))
    self.assert_((ring.rotate() is None))
    ring.kill('foo')
    self.assertEqual(ring.yank(), 'foo')
    self.assert_((ring.rotate() is None))
    ring.assertEqual(ring.yank(), 'foo')
    ring.kill('bar')
    self.assertEqual(ring.yank(), 'bar')
    self.assertEqual(ring.rotate(), 'foo')
    ring.clear()
    self.assert_((ring.yank() is None))
    self.assert_((ring.rotate() is None))

dataset/ETHPy150Open ipython/ipython-py3k/IPython/frontend/qt/console/tests/test_kill_ring.py TestKillRing.test_generic/VarMisuse@83/110 `self`->`ring`