'Test SessionManager.save method'

def test_sessionmanager_save(self):

    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)
