          class MockView(object):
              def get_template_names(self):
                  return ['template from get_template_names method']
  
          class MockView2(object):
              template_name = 'template from template_name attribute'
  
          template_name = renderer.get_template_names(self.mock_response,
                                                      MockView())
          assert template_name == ['template from get_template_names method']
 
</s> remove         class MockView(object):
 </s> add         class MockView: </s> remove         class MockResponse(object):
 </s> add         class MockResponse: </s> remove         class MockResponse(object):
 </s> add         class MockResponse: </s> remove         if style.get('input_type') == 'datetime-local' and isinstance(field.value, six.text_type):
 </s> add         if style.get('input_type') == 'datetime-local' and isinstance(field.value, str): </s> remove         class DummyView(object):
 </s> add         class DummyView:
        class MockView2:
          class MockView(object):
              def get_template_names(self):
                  return ['template from get_template_names method']
  
        class MockView2:
              template_name = 'template from template_name attribute'
  
          template_name = renderer.get_template_names(self.mock_response,
                                                      MockView())
          assert template_name == ['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