diff options
Diffstat (limited to 'ansible_collections/purestorage/fusion/tests/helpers.py')
-rw-r--r-- | ansible_collections/purestorage/fusion/tests/helpers.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ansible_collections/purestorage/fusion/tests/helpers.py b/ansible_collections/purestorage/fusion/tests/helpers.py index 40d98cf0e..76d51b6f7 100644 --- a/ansible_collections/purestorage/fusion/tests/helpers.py +++ b/ansible_collections/purestorage/fusion/tests/helpers.py @@ -27,3 +27,11 @@ class ApiExceptionsMockGenerator: 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__ |