  
  
  class JSONPRendererTests(TestCase):
      """
      Tests specific to the JSONP Renderer
      """
 
</s> remove 
        content = json.loads(response.content)
 </s> add         content = response.raw_content </s> remove         self.assertEquals(1, response.cleaned_content.groups.count())
        self.assertEquals('foo', response.cleaned_content.groups.all()[0].name)
 </s> add         self.assertEquals(1, response.raw_content.groups.count())
        self.assertEquals('foo', response.raw_content.groups.all()[0].name) </s> remove         content = json.loads(response.content)
 </s> add         content = response.raw_content </s> remove 
class Issue122Tests(TestCase):
    """
    Tests that covers #122.
    """
    urls = 'djangorestframework.tests.renderers'

    def test_only_html_renderer(self):
        """
        Test if no infinite recursion occurs.
        """
        resp = self.client.get('/html')
        
    def test_html_renderer_is_first(self):
        """
        Test if no infinite recursion occurs.
        """
        resp = self.client.get('/html1')
 </s> add  </s> remove         content = json.loads(response.content)
 </s> add         content = response.raw_content
class MockGETView(View):

    def get(self, request, **kwargs):
        return Response({'foo': ['bar', 'baz']})


urlpatterns = patterns('',
    url(r'^jsonp/jsonrenderer$', MockGETView.as_view(renderers=[JSONRenderer, JSONPRenderer])),
    url(r'^jsonp/nojsonrenderer$', MockGETView.as_view(renderers=[JSONPRenderer])),
)


  
  
class MockGETView(View):

    def get(self, request, **kwargs):
        return Response({'foo': ['bar', 'baz']})


urlpatterns = patterns('',
    url(r'^jsonp/jsonrenderer$', MockGETView.as_view(renderers=[JSONRenderer, JSONPRenderer])),
    url(r'^jsonp/nojsonrenderer$', MockGETView.as_view(renderers=[JSONPRenderer])),
)


  class JSONPRendererTests(TestCase):
      """
      Tests specific to the JSONP Renderer
      """
keep add keep keep keep keep
 Response as a subclass of HttpResponse - first draft, not quite there yet. 
djangorestframework/tests/renderers.py