

def test_flush(self):
    self.session['foo'] = 'bar'
    self.session.save()
    prev_key = self.session.session_key
    self.session.flush()
    self.assertFalse(self.session.exists(self))
    self.assertNotEqual(self.session.session_key, prev_key)
    self.assertTrue(self.session.modified)
    self.assertTrue(self.session.accessed)

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/sessions/tests.py SessionTestsMixin.test_flush/VarMisuse@53/63 `prev_key`->`self`