          response = my_view(request)
          assert response.status_code == status.HTTP_200_OK
  
      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'})`")
 
</s> remove         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.")
 </s> add         assert str(excinfo.value) == (
            "The `actions` argument must be provided "
            "when calling `.as_view()` on a ViewSet. "
            "For example `.as_view({'get': 'list'})`") </s> remove             def create(self, attrs):
                return attrs

 </s> add  </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
        with pytest.raises(TypeError) as excinfo:
          response = my_view(request)
          assert response.status_code == status.HTTP_200_OK
  
      def test_initialize_view_set_with_empty_actions(self):
        with pytest.raises(TypeError) as excinfo:
              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'})`")
keep keep keep keep 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