      url(
          r'^token/$',
          MockView.as_view(authentication_classes=[TokenAuthentication])
      ),
      url(
          r'^customtoken/$',
          MockView.as_view(authentication_classes=[CustomTokenAuthentication])
      ),
      url(
          r'^customkeywordtoken/$',
          MockView.as_view(
 
</s> remove     url(
        r'^token/$',
 </s> add     path(
        'token/', </s> remove     url(
        r'^customkeywordtoken/$',
 </s> add     path(
        'customkeywordtoken/', </s> remove     url(
        r'^remote-user/$',
 </s> add     path(
        'remote-user/', </s> remove     url(
        r'^basic/$',
 </s> add     path(
        'basic/', </s> remove     url(
        r'^session/$',
 </s> add     path(
        'session/',
    path(
        'customtoken/',
      url(
          r'^token/$',
          MockView.as_view(authentication_classes=[TokenAuthentication])
      ),
    path(
        'customtoken/',
    path(
        'customtoken/',
          MockView.as_view(authentication_classes=[CustomTokenAuthentication])
      ),
      url(
          r'^customkeywordtoken/$',
          MockView.as_view(
keep keep keep keep 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/authentication/test_authentication.py