'Language stored in session is preserved after logout'

def test_logout_preserve_language(self):

    engine = import_module(settings.SESSION_ENGINE)
    session = engine.SessionStore()
    session[LANGUAGE_SESSION_KEY] = 'pl'
    session.save()
    self.client.cookies[settings.SESSION_COOKIE_NAME] = session.session_key
    self.client.get('/logout/')
    self.assertEqual(self.client.session[LANGUAGE_SESSION_KEY], 'pl')
