def METHOD_NAME(self):
    request = RequestFactory().get("/")
    view = TranslatedTemplateView.as_view(template_name="test.html")
    response = view(request)
    self.assertEqual(response.context_data["current_language"], "en")
    view = TranslatedTemplateView.as_view(
        template_name="test.html", language="es"
    )
    response = view(request)
    self.assertEqual(response.context_data["current_language"], "es")