

def test_cycle(self):
    (self.session['a'], self.session['b']) = ('c', 'd')
    self.session.save()
    prev_key = self.session.session_key
    prev_data = self.session.items()
    self.session.cycle_key()
    self.assertNotEqual(self.session.session_key, prev_key)
    self.assertEqual(self.session.items(), prev_data)

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/sessions/tests.py SessionTestsMixin.test_cycle/original