  from __future__ import unicode_literals
  from django.db import models
  from django.shortcuts import get_object_or_404
  from django.test import TestCase
  from rest_framework import generics, serializers, status
  from rest_framework.tests.utils import RequestFactory
  from rest_framework.tests.models import BasicModel, Comment, SlugBasedModel
  from rest_framework.compat import six
  import json
  
 
</s> remove         raw_data_put_form = self.get_raw_data_form(view, 'PUT', request, media_types)
        raw_data_post_form = self.get_raw_data_form(view, 'POST', request, media_types)
        raw_data_patch_form = self.get_raw_data_form(view, 'PATCH', request, media_types)
 </s> add         raw_data_put_form = self._get_raw_data_form(view, 'PUT', request, media_types)
        raw_data_post_form = self._get_raw_data_form(view, 'POST', request, media_types)
        raw_data_patch_form = self._get_raw_data_form(view, 'PATCH', request, media_types) </s> remove         put_form = self.get_form(view, 'PUT', request)
        post_form = self.get_form(view, 'POST', request)
        patch_form = self.get_form(view, 'PATCH', request)
        delete_form = self.get_form(view, 'DELETE', request)
        options_form = self.get_form(view, 'OPTIONS', request)
 </s> add         put_form = self._get_form(view, 'PUT', request)
        post_form = self._get_form(view, 'POST', request)
        patch_form = self._get_form(view, 'PATCH', request)
        delete_form = self._get_form(view, 'DELETE', request)
        options_form = self._get_form(view, 'OPTIONS', request) </s> remove             view.check_permissions(clone_request(request, method))
 </s> add             view.check_permissions(request)
from rest_framework import generics, renderers, serializers, status
  from __future__ import unicode_literals
  from django.db import models
  from django.shortcuts import get_object_or_404
  from django.test import TestCase
from rest_framework import generics, renderers, serializers, status
  from rest_framework.tests.utils import RequestFactory
  from rest_framework.tests.models import BasicModel, Comment, SlugBasedModel
  from rest_framework.compat import six
  import json
  
keep keep keep keep replace keep keep keep keep keep
 Forms in Broseable API support dynamic serializers based on request method 
rest_framework/tests/generics.py