def METHOD_NAME(self):
    """
    The set_language view can be used to change the session language.
    """
    lang_code = self._get_inactive_language_code()
    post_data = dict(language=lang_code)
    response = self.client.post(reverse("kolibri:core:set_language"), post_data)
    self.assertEqual(response.status_code, 200)
    self.assertEqual(
        response.content.decode("utf-8"),
        translate_url(reverse("kolibri:core:redirect_user"), lang_code),
    )
    self.assertEqual(self.client.session[LANGUAGE_SESSION_KEY], lang_code)