  from django.http import Http404
  from django.test import TestCase
  from django.template import TemplateDoesNotExist, Template
  import django.template.loader
  from rest_framework.compat import patterns, url
  from rest_framework.decorators import api_view, renderer_classes
  from rest_framework.renderers import TemplateHTMLRenderer
  from rest_framework.response import Response
  from rest_framework.compat import six
 
</s> remove         self.assertEqual(response.status_code, 200)
 </s> add         self.assertEqual(response.status_code, status.HTTP_200_OK) </s> remove         self.assertEqual(response.status_code, 200)
 </s> add         self.assertEqual(response.status_code, status.HTTP_200_OK) </s> remove         self.assertEqual(response.status_code, 200)
 </s> add         self.assertEqual(response.status_code, status.HTTP_200_OK) </s> remove         self.assertEqual(response.status_code, 401)
 </s> add         self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
from rest_framework import status
  from django.http import Http404
  from django.test import TestCase
  from django.template import TemplateDoesNotExist, Template
  import django.template.loader
from rest_framework import status
  from rest_framework.compat import patterns, url
  from rest_framework.decorators import api_view, renderer_classes
  from rest_framework.renderers import TemplateHTMLRenderer
  from rest_framework.response import Response
  from rest_framework.compat import six
keep keep keep add keep keep keep keep keep
 Replaced status numbers with the statuses constants from the status model. 
rest_framework/tests/htmlrenderer.py