def test_generic(self):
        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)
        self.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)
Evolve the incompressible equations through one timestep.
dataset/ETHPy150Open ipython/ipython-py3k/IPython/frontend/qt/console/tests/test_kill_ring.py/TestKillRing.test_generic--crossover with--dataset/ETHPy150Open zingale/pyro2/lm_combustion/simulation.py/Simulation.evolve