  router.register(r'mapping', ActionViewSetWithMapping, basename='mapping')
  
  
  urlpatterns = [
      url(r'^api/', include(router.urls)),
  ]
  
  
  class InitializeViewSetsTestCase(TestCase):
      def test_initialize_view_set_with_actions(self):
 
</s> remove         url('^$', schema_view),
        url(r'^', include(router.urls)),
 </s> add         path('', schema_view),
        path('', include(router.urls)), </s> remove         url(r'^regex/', include(regex_url_path_router.urls)),
 </s> add         path('regex/', include(regex_url_path_router.urls)), </s> remove         url(r'^example/', include(notes_router.urls)),
 </s> add         path('example/', include(notes_router.urls)), </s> remove         url(r'^$', view),
 </s> add         path('', view), </s> remove         url(r'^empty-prefix/', include(empty_prefix_router.urls)),
 </s> add         path('empty-prefix/', include(empty_prefix_router.urls)),
    path('api/', include(router.urls)),
  router.register(r'mapping', ActionViewSetWithMapping, basename='mapping')
  
  
  urlpatterns = [
    path('api/', include(router.urls)),
  ]
  
  
  class InitializeViewSetsTestCase(TestCase):
      def test_initialize_view_set_with_actions(self):
keep keep keep keep replace keep keep 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/test_viewsets.py