          self.assertEquals(response['Content-Type'], 'text/html')
  
      def test_permission_denied_html_view(self):
          response = self.client.get('/permission_denied')
          self.assertEquals(response.status_code, 403)
          self.assertEquals(response.content, six.b("403 Forbidden"))
          self.assertEquals(response['Content-Type'], 'text/html')
  
  
  class TemplateHTMLRendererExceptionTests(TestCase):
 
</s> remove         self.assertEquals(response.status_code, 403)
 </s> add         self.assertEquals(response.status_code, status.HTTP_403_FORBIDDEN) </s> remove         self.assertEquals(response.status_code, 404)
 </s> add         self.assertEquals(response.status_code, status.HTTP_404_NOT_FOUND) </s> remove         self.assertEquals(response.status_code, 404)
 </s> add         self.assertEquals(response.status_code, status.HTTP_404_NOT_FOUND) </s> remove         self.assertEqual(response.status_code, 403)
 </s> add         self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) </s> remove         self.assertEqual(response.status_code, 401)
 </s> add         self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
        self.assertEquals(response.status_code, status.HTTP_403_FORBIDDEN)
          self.assertEquals(response['Content-Type'], 'text/html')
  
      def test_permission_denied_html_view(self):
          response = self.client.get('/permission_denied')
        self.assertEquals(response.status_code, status.HTTP_403_FORBIDDEN)
          self.assertEquals(response.content, six.b("403 Forbidden"))
          self.assertEquals(response['Content-Type'], 'text/html')
  
  
  class TemplateHTMLRendererExceptionTests(TestCase):
keep keep keep keep replace keep keep keep keep keep
 Replaced status numbers with the statuses constants from the status model. 
rest_framework/tests/htmlrenderer.py