summaryrefslogtreecommitdiffstats
path: root/ansible_collections/purestorage/fusion/tests/helpers.py
diff options
context:
space:
mode:
Diffstat (limited to 'ansible_collections/purestorage/fusion/tests/helpers.py')
-rw-r--r--ansible_collections/purestorage/fusion/tests/helpers.py37
1 files changed, 0 insertions, 37 deletions
diff --git a/ansible_collections/purestorage/fusion/tests/helpers.py b/ansible_collections/purestorage/fusion/tests/helpers.py
deleted file mode 100644
index 76d51b6f7..000000000
--- a/ansible_collections/purestorage/fusion/tests/helpers.py
+++ /dev/null
@@ -1,37 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# (c) 2023, Denys Denysyev (ddenysyev@purestorage.com)
-# GNU General Public License v3.0+ (see COPYING.GPLv3 or https://www.gnu.org/licenses/gpl-3.0.txt)
-
-from __future__ import absolute_import, division, print_function
-
-__metaclass__ = type
-
-import fusion as purefusion
-
-from http import HTTPStatus
-
-
-class ApiExceptionsMockGenerator:
- @staticmethod
- def create_permission_denied():
- status = HTTPStatus.FORBIDDEN
- return purefusion.rest.ApiException(status=status, reason=status.phrase)
-
- @staticmethod
- def create_conflict():
- status = HTTPStatus.CONFLICT
- return purefusion.rest.ApiException(status=status, reason=status.phrase)
-
- @staticmethod
- def create_not_found():
- status = HTTPStatus.NOT_FOUND
- return purefusion.rest.ApiException(status=status, reason=status.phrase)
-
-
-class OperationResultsDict(dict):
- """dot.notation access to dictionary attributes"""
-
- __getattr__ = dict.get
- __setattr__ = dict.__setitem__
- __delattr__ = dict.__delitem__