  from django.test import TestCase
  
  from rest_framework import status
  from rest_framework.response import Response
  from rest_framework.test import APIRequestFactory
  from rest_framework.viewsets import GenericViewSet
 
</s>
from django.conf.urls import include, url
from django.db import models
from django.test import TestCase, override_settings
from django.conf.urls import include, url
from django.db import models
from django.test import TestCase, override_settings
  
  from rest_framework import status
  from rest_framework.response import Response
  from rest_framework.test import APIRequestFactory
  from rest_framework.viewsets import GenericViewSet
replace keep keep keep keep keep
 Add '.basename' and '.reverse_action()' to ViewSet (#5648)

* Router sets 'basename' on ViewSet

* Add 'ViewSet.reverse_action()' method

* Test router setting initkwargs
tests/test_viewsets.py