  
      def test_get_template_names_returns_view_template_name(self):
          renderer = TemplateHTMLRenderer()
  
          class MockResponse(object):
              template_name = None
  
          class MockView(object):
              def get_template_names(self):
                  return ['template from get_template_names method']
 
</s> remove         class MockView(object):
 </s> add         class MockView: </s> remove         class MockView2(object):
 </s> add         class MockView2: </s> remove         class MockResponse(object):
 </s> add         class MockResponse: </s> remove             super(APIClient, self).logout()
 </s> add             super().logout() </s> remove class BaseTokenAuthTests(object):
 </s> add class BaseTokenAuthTests:
        class MockResponse:
  
      def test_get_template_names_returns_view_template_name(self):
          renderer = TemplateHTMLRenderer()
  
        class MockResponse:
              template_name = None
  
          class MockView(object):
              def get_template_names(self):
                  return ['template from get_template_names method']
keep keep keep keep replace keep keep keep keep keep
 Dropped Python 2 compatibility. (#6615)

Thanks to Jon Dufresne (@jdufresne) for review.

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Rizwan Mansuri <Rizwan@webbyfox.com> 
tests/test_htmlrenderer.py