  
  
  class TestViewInitkwargs(URLPatternsTestCase, TestCase):
      urlpatterns = [
          url(r'^example/', include(notes_router.urls)),
      ]
  
      def test_suffix(self):
          match = resolve('/example/notes/')
          initkwargs = match.func.initkwargs
 
</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'^empty-prefix/', include(empty_prefix_router.urls)),
 </s> add         path('empty-prefix/', include(empty_prefix_router.urls)), </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): </s> remove     url(r'^$', FooView.as_view())
 </s> add     path('', FooView.as_view())
        path('example/', include(notes_router.urls)),
  
  
  class TestViewInitkwargs(URLPatternsTestCase, TestCase):
      urlpatterns = [
        path('example/', include(notes_router.urls)),
      ]
  
      def test_suffix(self):
          match = resolve('/example/notes/')
          initkwargs = match.func.initkwargs
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_routers.py