  @unittest.skipUnless(coreapi, 'coreapi is not installed')
  class TestSchemaGeneratorWithMethodLimitedViewSets(TestCase):
      def setUp(self):
          router = DefaultRouter()
          router.register('example1', MethodLimitedViewSet, base_name='example1')
          self.patterns = [
              url(r'^', include(router.urls))
          ]
  
      def test_schema_for_regular_views(self):
 
</s> remove         router.register('example1', Http404ExampleViewSet, base_name='example1')
        router.register('example2', PermissionDeniedExampleViewSet, base_name='example2')
 </s> add         router.register('example1', Http404ExampleViewSet, basename='example1')
        router.register('example2', PermissionDeniedExampleViewSet, basename='example2') </s> remove router.register('example', ExampleViewSet, base_name='example')
 </s> add router.register('example', ExampleViewSet, basename='example') </s> remove router.register(r'actions-alt', ActionViewSet, base_name='actions-alt')
 </s> add router.register(r'actions-alt', ActionViewSet, basename='actions-alt') </s> remove class BaseRouter(object):
 </s> add class RenameRouterMethods(RenameMethodsBase):
    renamed_methods = (
        ('get_default_base_name', 'get_default_basename', DeprecationWarning),
    )


class BaseRouter(six.with_metaclass(RenameRouterMethods)): </s> remove naming_collisions_router.register(r'collision', NamingCollisionViewSet, base_name="collision")
 </s> add naming_collisions_router.register(r'collision', NamingCollisionViewSet, basename="collision")
        router.register('example1', MethodLimitedViewSet, basename='example1')
  @unittest.skipUnless(coreapi, 'coreapi is not installed')
  class TestSchemaGeneratorWithMethodLimitedViewSets(TestCase):
      def setUp(self):
          router = DefaultRouter()
        router.register('example1', MethodLimitedViewSet, basename='example1')
          self.patterns = [
              url(r'^', include(router.urls))
          ]
  
      def test_schema_for_regular_views(self):
keep keep keep keep replace keep keep keep keep keep
 Rename base_name => basename for consistency's sake (#5990)

* Rename base_name => basename for consistency

* Update tests to use basename 
tests/test_schemas.py