      (r'^basic/$', MockView.as_view(authentication_classes=[BasicAuthentication])),
      (r'^token/$', MockView.as_view(authentication_classes=[TokenAuthentication])),
      (r'^auth-token/$', 'rest_framework.authtoken.views.obtain_auth_token'),
      url(r'^auth/', include('rest_framework.urls', namespace='rest_framework'))
  )
  
  
  class BasicAuthTests(TestCase):
      """Basic authentication"""
      urls = 'tests.test_authentication'
 
</s> remove urlpatterns = patterns(
    '',
 </s> add urlpatterns = [ </s> remove )
 </s> add ] </s> remove urlpatterns = patterns(
    '',
 </s> add urlpatterns = [ </s> remove )
 </s> add ] </s> remove )
 </s> add ]
]
      (r'^basic/$', MockView.as_view(authentication_classes=[BasicAuthentication])),
      (r'^token/$', MockView.as_view(authentication_classes=[TokenAuthentication])),
      (r'^auth-token/$', 'rest_framework.authtoken.views.obtain_auth_token'),
      url(r'^auth/', include('rest_framework.urls', namespace='rest_framework'))
]
  
  
  class BasicAuthTests(TestCase):
      """Basic authentication"""
      urls = 'tests.test_authentication'
keep keep keep keep replace keep keep keep keep keep
 Remove `django.conf.urls.pattern` as it'll be removed in Django 2.0 
tests/test_authentication.py