def teardown_method(self, method):
        models.Comment.__bases__ = (models.Comment.__bases__[0],)
        try:
            delattr(serializers.CommentSerializer.Meta, "resource_name")
        except AttributeError:
            pass
        try:
            delattr(views.CommentViewSet, "resource_name")
        except __HOLE__:
            pass
dataset/ETHPy150Open django-json-api/django-rest-framework-json-api/example/tests/integration/test_model_resource_name.py/TestModelResourceName.teardown_method