      queryset = [{'nested': {'one': 1, 'two': 2}}]
  
  
  urlpatterns = [
      url(r'^api/$', NestedSerializersView.as_view(), name='api'),
  ]
  
  
  class DropdownWithAuthTests(TestCase):
      """Tests correct dropdown behaviour with Auth views enabled."""
 
</s> remove     url(
        r'^session/$',
 </s> add     path(
        'session/', </s> remove     url(r'^$', FooView.as_view())
 </s> add     path('', FooView.as_view()) </s> remove         url(r'^auth/', include('rest_framework.urls'))
 </s> add         path('auth/', include('rest_framework.urls')) </s> remove         url(r'^example/', include(notes_router.urls)),
 </s> add         path('example/', include(notes_router.urls)), </s> remove         url(r'^regex/', include(regex_url_path_router.urls)),
 </s> add         path('regex/', include(regex_url_path_router.urls)),
    path('api/', NestedSerializersView.as_view(), name='api'),
      queryset = [{'nested': {'one': 1, 'two': 2}}]
  
  
  urlpatterns = [
    path('api/', NestedSerializersView.as_view(), name='api'),
  ]
  
  
  class DropdownWithAuthTests(TestCase):
      """Tests correct dropdown behaviour with Auth views enabled."""
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/browsable_api/test_browsable_nested_api.py