          self.assertEquals(resp['Content-Type'], RendererB.media_type)
          self.assertEquals(resp.content, RENDERER_B_SERIALIZER(DUMMYCONTENT))
          self.assertEquals(resp.status_code, DUMMYSTATUS)
  
      @unittest.skip('can\'t pass because view is a simple Django view and response is an ImmediateResponse')
      def test_unsatisfiable_accept_header_on_request_returns_406_status(self):
          """If the Accept header is unsatisfiable we should return a 406 Not Acceptable response."""
          resp = self.client.get('/', HTTP_ACCEPT='foo/bar')
          self.assertEquals(resp.status_code, status.HTTP_406_NOT_ACCEPTABLE)
  
      def test_specified_renderer_serializes_content_on_format_query(self):
          """If a 'format' query is specified, the renderer with the matching
          format attribute should serialize the response."""
          resp = self.client.get('/?format=%s' % RendererB.format)
          self.assertEquals(resp['Content-Type'], RendererB.media_type)
 
</s> remove # Helper function for 'add_query_param'
def replace_query_param(url, key, val):
    """
    Given a URL and a key/val pair, set or replace an item in the query
    parameters of the URL, and return the new URL.
    """
    (scheme, netloc, path, query, fragment) = urlsplit(url)
    query_dict = QueryDict(query).copy()
    query_dict[key] = val
    query = query_dict.urlencode()
    return urlunsplit((scheme, netloc, path, query, fragment))


 </s> add  </s> remove         expected_data = [ f for f in self.data if f['date'] > search_date and
                                                  f['decimal'] < search_decimal ]
 </s> add         expected_data = [f for f in self.data if f['date'] > search_date and
                                                  f['decimal'] < search_decimal]
          self.assertEquals(resp['Content-Type'], RendererB.media_type)
          self.assertEquals(resp.content, RENDERER_B_SERIALIZER(DUMMYCONTENT))
          self.assertEquals(resp.status_code, DUMMYSTATUS)
  






      def test_specified_renderer_serializes_content_on_format_query(self):
          """If a 'format' query is specified, the renderer with the matching
          format attribute should serialize the response."""
          resp = self.client.get('/?format=%s' % RendererB.format)
          self.assertEquals(resp['Content-Type'], RendererB.media_type)
keep keep keep keep replace replace replace replace replace replace keep keep keep keep keep
 Make filtering optional, and pluggable. 
rest_framework/tests/response.py