  
      def test_initialize_view_set_with_empty_actions(self):
          try:
              BasicViewSet.as_view()
          except TypeError as e:
              assert str(e) == ("The `actions` argument must be provided "
                                "when calling `.as_view()` on a ViewSet. "
                                "For example `.as_view({'get': 'list'})`")
          else:
              self.fail("actions must not be empty.")
  
      def test_args_kwargs_request_action_map_on_self(self):
          """
          Test a view only has args, kwargs, request, action_map
          once `as_view` has been called.
 
</s> remove         try:
 </s> add         with pytest.raises(TypeError) as excinfo: </s> remove         pass
 </s> add         raise NotImplementedError()  # pragma: no cover </s> remove         pass
 </s> add         raise NotImplementedError()  # pragma: no cover </s> remove         pass
 </s> add         raise NotImplementedError()  # pragma: no cover </s> remove         pass
 </s> add         raise NotImplementedError()  # pragma: no cover
        assert str(excinfo.value) == (
            "The `actions` argument must be provided "
            "when calling `.as_view()` on a ViewSet. "
            "For example `.as_view({'get': 'list'})`")
  
      def test_initialize_view_set_with_empty_actions(self):
          try:
              BasicViewSet.as_view()
        assert str(excinfo.value) == (
            "The `actions` argument must be provided "
            "when calling `.as_view()` on a ViewSet. "
            "For example `.as_view({'get': 'list'})`")
        assert str(excinfo.value) == (
            "The `actions` argument must be provided "
            "when calling `.as_view()` on a ViewSet. "
            "For example `.as_view({'get': 'list'})`")
        assert str(excinfo.value) == (
            "The `actions` argument must be provided "
            "when calling `.as_view()` on a ViewSet. "
            "For example `.as_view({'get': 'list'})`")
        assert str(excinfo.value) == (
            "The `actions` argument must be provided "
            "when calling `.as_view()` on a ViewSet. "
            "For example `.as_view({'get': 'list'})`")
        assert str(excinfo.value) == (
            "The `actions` argument must be provided "
            "when calling `.as_view()` on a ViewSet. "
            "For example `.as_view({'get': 'list'})`")
        assert str(excinfo.value) == (
            "The `actions` argument must be provided "
            "when calling `.as_view()` on a ViewSet. "
            "For example `.as_view({'get': 'list'})`")
  
      def test_args_kwargs_request_action_map_on_self(self):
          """
          Test a view only has args, kwargs, request, action_map
          once `as_view` has been called.
keep keep keep keep replace replace replace replace replace replace keep keep keep keep keep
 tests: remove some dead code, use `assert 0` for never called methods (#5973)

* tests: remove some dead code, use `assert 0` for never called methods

* fixup! tests: remove some dead code, use `assert 0` for never called methods 
tests/test_viewsets.py