def METHOD_NAME(self):
    """
    The set_language view is forbidden to be accessed via GET
    """
    lang_code = self._get_inactive_language_code()
    response = self.client.get(reverse("set_language"), params=self.set_post_data(lang_code), content_type='application/json')
    self.assertEqual(type(response), HttpResponseNotAllowed)