#
# Copyright 2021 DataRobot, Inc. and its affiliates.
#
# All rights reserved.
#
# DataRobot, Inc.
#
# This is proprietary source code of DataRobot, Inc. and its
# affiliates.
#
# Released under the terms of DataRobot Tool and Utility Agreement.
"""
Autogenerated DataRobot python client file.  Please don't modify.
"""

import json
import responses
from six.moves.urllib.parse import urljoin
from dateutil import parser
from datarobot.models.full_api.generated.model.string_encryption import StringEncryption
from datarobot.models.full_api.generated.model.string_encryption_response import StringEncryptionResponse
from datarobot.utils import from_api
from datarobot.models.full_api.generated.model import *

from datarobot.models.full_api.generated.api.utilities_api import UtilitiesApi




@responses.activate
def test_utilities_api_string_encryptions_create(unittest_endpoint):
    responses.add(
        responses.POST,
       '{endpoint}/api/v2/stringEncryptions/'.format(endpoint=unittest_endpoint),
        status=200,
        content_type='application/json',
        body=json.dumps({
  "cipherText" : "cipherText"
})
    )
    result = UtilitiesApi.string_encryptions_create()
    assert isinstance(result, StringEncryptionResponse)
