          url(r'^example/(?P<pk>\d+)/$', dummy_pk_view, name='example-detail')
      ]
  
      urlpatterns = [
          url(r'^v1/', include((included, 'v1'), namespace='v1')),
          url(r'^another/$', dummy_view, name='another'),
          url(r'^(?P<version>[v1|v2]+)/another/$', dummy_view, name='another'),
      ]
  
      def test_reverse_unversioned(self):
          view = ReverseView.as_view()
  
 
</s> remove         url(r'^namespaced/$', dummy_view, name='another'),
        url(r'^example/(?P<pk>\d+)/$', dummy_pk_view, name='example-detail')
 </s> add         path('namespaced/', dummy_view, name='another'),
        path('example/<int:pk>/', dummy_pk_view, name='example-detail') </s> remove         url(r'^v1/', include((included, 'v1'), namespace='v1')),
        url(r'^v2/', include((included, 'v2'), namespace='v2'))
 </s> add         path('v1/', include((included, 'v1'), namespace='v1')),
        path('v2/', include((included, 'v2'), namespace='v2')) </s> remove         url(r'^namespaced/(?P<pk>\d+)/$', dummy_pk_view, name='namespaced'),
 </s> add         path('namespaced/<int:pk>/', dummy_pk_view, name='namespaced'), </s> remove         url(r'^v1/', include((included, 'restframeworkv1'), namespace='v1')),
        url(r'^v2/', include((included, 'restframeworkv2'), namespace='v2')),
        url(r'^non-api/(?P<pk>\d+)/$', dummy_pk_view, name='non-api-view')
 </s> add         path('v1/', include((included, 'restframeworkv1'), namespace='v1')),
        path('v2/', include((included, 'restframeworkv2'), namespace='v2')),
        path('non-api/<int:pk>/', dummy_pk_view, name='non-api-view') </s> remove         url(r'^namespaced/(?P<pk>\d+)/$', dummy_pk_view, name='namespaced'),
        url(r'^nested/', include((nested, 'nested-namespace'), namespace='nested-namespace'))
 </s> add         path('namespaced/<int:pk>/', dummy_pk_view, name='namespaced'),
        path('nested/', include((nested, 'nested-namespace'), namespace='nested-namespace'))
        path('v1/', include((included, 'v1'), namespace='v1')),
        path('another/', dummy_view, name='another'),
        re_path(r'^(?P<version>[v1|v2]+)/another/$', dummy_view, name='another'),
          url(r'^example/(?P<pk>\d+)/$', dummy_pk_view, name='example-detail')
      ]
  
      urlpatterns = [
        path('v1/', include((included, 'v1'), namespace='v1')),
        path('another/', dummy_view, name='another'),
        re_path(r'^(?P<version>[v1|v2]+)/another/$', dummy_view, name='another'),
        path('v1/', include((included, 'v1'), namespace='v1')),
        path('another/', dummy_view, name='another'),
        re_path(r'^(?P<version>[v1|v2]+)/another/$', dummy_view, name='another'),
        path('v1/', include((included, 'v1'), namespace='v1')),
        path('another/', dummy_view, name='another'),
        re_path(r'^(?P<version>[v1|v2]+)/another/$', dummy_view, name='another'),
      ]
  
      def test_reverse_unversioned(self):
          view = ReverseView.as_view()
  
keep keep keep keep replace replace 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_versioning.py