  from __future__ import unicode_literals
  from django.conf.urls import patterns, url
  from django.core.urlresolvers import NoReverseMatch
  from django.test import TestCase
  from rest_framework.reverse import reverse
  from rest_framework.test import APIRequestFactory
  
 
</s> remove from django.conf.urls import patterns, url
 </s> add from django.conf.urls import url </s> remove from django.conf.urls import patterns, url, include
 </s> add from django.conf.urls import url, include </s> remove from django.conf.urls import patterns, url
 </s> add from django.conf.urls import url </s> remove from django.conf.urls import patterns, url
 </s> add from django.conf.urls import url </s> remove from django.conf.urls import patterns, url
 </s> add from django.conf.urls import url
from django.conf.urls import url
  from __future__ import unicode_literals
from django.conf.urls import url
  from django.core.urlresolvers import NoReverseMatch
  from django.test import TestCase
  from rest_framework.reverse import reverse
  from rest_framework.test import APIRequestFactory
  
keep replace keep keep keep keep keep
 Remove `django.conf.urls.pattern` as it'll be removed in Django 2.0 
tests/test_reverse.py