  from rest_framework.documentation import include_docs_urls
  
  if coreapi:
      urlpatterns = [
          url(r'^docs/', include_docs_urls(title='Test Suite API')),
      ]
  else:
      urlpatterns = []
 
</s> remove from django.conf.urls import url
 </s> add from django.urls import path </s> remove         url(r'^docs/', include_docs_urls(title=API_TITLE, description=API_DESCRIPTION))
 </s> add         path('docs/', include_docs_urls(title=API_TITLE, description=API_DESCRIPTION)) </s> remove     url(r'^$', MockView.as_view()),
 </s> add     path('', MockView.as_view()), </s> remove         nested_patterns = [
            url(r'^path$', dummy_view)
        ]
        urlpatterns = [
            url(r'^test/', include(nested_patterns), {'foo': 'bar'}),
        ]
        self._test_included_urls(urlpatterns)

    def test_included_urls_django2(self):
 </s> add  </s> remove     def test_included_urls_django2_mixed(self):
        nested_patterns = [
            path('path', dummy_view)
        ]
        urlpatterns = [
            url('^test/', include(nested_patterns), {'foo': 'bar'}),
        ]
        self._test_included_urls(urlpatterns)

    def test_included_urls_django2_mixed_args(self):
 </s> add     def test_included_urls_mixed(self):
        path('docs/', include_docs_urls(title='Test Suite API')),
  from rest_framework.documentation import include_docs_urls
  
  if coreapi:
      urlpatterns = [
        path('docs/', include_docs_urls(title='Test Suite API')),
      ]
  else:
      urlpatterns = []
keep keep keep keep replace keep keep keep
 Replace all url() calls with path() or re_path() (#7512)

* url() is deprecated in Django 3.1

* update given feedbacks on url() is deprecated in Django 3.1

* Fix test_urlpatterns.py to continue testing mixed re_path() and path()

* Fix one missed reference

Co-authored-by: sanjusci <sanju.sci9@gmail.com> 
tests/urls.py