

def test_sessionmanager_save(self):
    '\n        Test SessionManager.save method\n        '
    self.session['y'] = 1
    self.session.save()
    s = Session.objects.get(session_key=self.session.session_key)
    Session.objects.save(s.session_key, {
        'y': 2,
    }, s.expire_date)
    del self.session._session_cache
    self.assertEqual(self.session['y'], 2)

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