  from django.contrib.sessions.middleware import SessionMiddleware
  from django.test import TestCase, Client
  from django.utils import simplejson as json
  from rest_framework import status
  from rest_framework.authentication import SessionAuthentication
  from rest_framework.compat import patterns
  from rest_framework.parsers import (
      BaseParser,
 
</s> remove from django.test.client import RequestFactory
 </s> add from rest_framework.compat import patterns </s> remove from django.conf.urls.defaults import patterns
 </s> add  </s> remove from django.conf.urls.defaults import patterns
 </s> add  </s> remove from django.test.client import RequestFactory
 </s> add 
from django.test.client import RequestFactory
  from django.contrib.sessions.middleware import SessionMiddleware
  from django.test import TestCase, Client
from django.test.client import RequestFactory
  from django.utils import simplejson as json
  from rest_framework import status
  from rest_framework.authentication import SessionAuthentication
  from rest_framework.compat import patterns
  from rest_framework.parsers import (
      BaseParser,
keep add keep keep keep keep keep keep
 urls, patterns, include imports move to compat to support incoming 1.3 thru 1.6 import compatability 
rest_framework/tests/request.py