  class MockView(View):
      """This is a basic mock view"""
      pass
  
  class ResourceMockView(View):
      """This is a resource-based mock view"""
  
      class MockForm(forms.Form):
          foo = forms.BooleanField(required=False)
 
</s>
class MockViewFinal(View):
    """View with final() override"""

    def final(self, request, response, *args, **kwargs):
        return HttpResponse('{"test": "passed"}', content_type="application/json")

  class MockView(View):
      """This is a basic mock view"""
      pass
  
class MockViewFinal(View):
    """View with final() override"""

    def final(self, request, response, *args, **kwargs):
        return HttpResponse('{"test": "passed"}', content_type="application/json")

  class ResourceMockView(View):
      """This is a resource-based mock view"""
  
      class MockForm(forms.Form):
          foo = forms.BooleanField(required=False)
keep keep keep add keep keep keep keep keep
 Add test for final() method
djangorestframework/tests/views.py