  
  EMITTER_A_SERIALIZER = lambda x: 'Emitter A: %s' % x
  EMITTER_B_SERIALIZER = lambda x: 'Emitter B: %s' % x
  
  class MockView(EmitterMixin, View):
      def get(self, request):
          response = Response(DUMMYSTATUS, DUMMYCONTENT)
          return self.emit(response)
  
  class EmitterA(BaseEmitter):
 
</s> remove             raise ResponseException(status.HTTP_400_BAD_REQUEST, {'detail': 'JSON parse error - %s' % str(exc)})
 </s> add             raise ErrorResponse(status.HTTP_400_BAD_REQUEST, {'detail': 'JSON parse error - %s' % str(exc)}) </s> remove     def emit(self, output=NoContent):
 </s> add     def emit(self, output=None): </s> remove         return self.emit(response)
 </s> add             return self.emit(response)
        except:
            import traceback
            traceback.print_exc() </s> remove class Resource(EmitterMixin, AuthMixin, RequestMixin, View):
 </s> add class Resource(RequestMixin, ResponseMixin, AuthMixin, View): </s> remove         response.headers['Allow'] = ', '.join(self.allowed_methods)
        response.headers['Vary'] = 'Authenticate, Accept'
 </s> add         try:
            response.headers['Allow'] = ', '.join(self.allowed_methods)
            response.headers['Vary'] = 'Authenticate, Accept'
class MockView(ResponseMixin, View):
  
  EMITTER_A_SERIALIZER = lambda x: 'Emitter A: %s' % x
  EMITTER_B_SERIALIZER = lambda x: 'Emitter B: %s' % x
  
class MockView(ResponseMixin, View):
      def get(self, request):
          response = Response(DUMMYSTATUS, DUMMYCONTENT)
          return self.emit(response)
  
  class EmitterA(BaseEmitter):
keep keep keep keep replace keep keep keep keep keep
 Rename mixins into Mixin class, rename ResponseException to ErrorResponse, remove NoContent 
djangorestframework/tests/emitters.py