      
      def as_tuple(self):
          return (self.main_type, self.sub_type, self.params)
  
      def __repr__(self):
          return "<MediaType %s>" % (self.as_tuple(),)
  
      def __str__(self):
          return unicode(self).encode('utf-8')
  
      def __unicode__(self):
 
</s> remove     def as_tuple(self):
        return (self.main_type, self.sub_type, self.params)
 </s> add     #def as_tuple(self):
    #    return (self.main_type, self.sub_type, self.params) </s> remove             return 3
        return 4

    def quality(self):
        """
        Return a quality level for the media type.
        """
        try:
            return Decimal(self.params.get('q', '1.0'))
        except:
            return Decimal(0)
    
    def score(self):
        """
        Return an overall score for a given media type given it's quality and precedence.
        """
        # NB. quality values should only have up to 3 decimal points
        # http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.9
        return self.quality * 10000 + self.precedence
 </s> add             return 2
        return 3

    #def quality(self):
    #    """
    #    Return a quality level for the media type.
    #    """
    #    try:
    #        return Decimal(self.params.get('q', '1.0'))
    #    except:
    #        return Decimal(0)
 
    #def score(self):
    #    """
    #    Return an overall score for a given media type given it's quality and precedence.
    #    """
    #    # NB. quality values should only have up to 3 decimal points
    #    # http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.9
    #    return self.quality * 10000 + self.precedence </s> remove class MockView(ResponseMixin, DjangoView):
    def get(self, request):
        response = Response(DUMMYSTATUS, DUMMYCONTENT)
        return self.render(response)

 </s> add  </s> remove             return 2
 </s> add             return 1
    #def __repr__(self):
    #    return "<MediaType %s>" % (self.as_tuple(),)
      
      def as_tuple(self):
          return (self.main_type, self.sub_type, self.params)
  
    #def __repr__(self):
    #    return "<MediaType %s>" % (self.as_tuple(),)
    #def __repr__(self):
    #    return "<MediaType %s>" % (self.as_tuple(),)
  
      def __str__(self):
          return unicode(self).encode('utf-8')
  
      def __unicode__(self):
keep keep keep keep replace replace keep keep keep keep keep
 Renderers can now cope with parameterised args.  ResponseMixin gets cleaned up & added Renderer.can_handle_response(), mirroring Parsers.can_handle_request() 
djangorestframework/utils/mediatypes.py