docstr: EphemeralUnencryptedDriver - Save Automatically Decrypts
docstr_tok: ["EphemeralUnencryptedDriver","-","Save","Automatically","Decrypts"]
code: def test_save_automatically_decrypts(self):
      """EphemeralUnencryptedDriver - Save Automatically Decrypts"""
      raw_credentials_dict = {
          "python": "is very difficult",
          "someone": "save meeeee",
      }
      descriptor = "descriptor5"
  
      raw_credentials = json.dumps(raw_credentials_dict)
      encrypted_raw_credentials = encrypt_with_kms(
          raw_credentials, REGION, KMS_ALIAS
      )
  
      credentials = Credentials(encrypted_raw_credentials, True, REGION)
  
      assert_true(
          self._ep_driver.save_credentials(descriptor, credentials)
      )
  
      loaded_credentials = self._ep_driver.load_credentials(descriptor)
  
      assert_is_not_none(loaded_credentials)
      assert_false(loaded_credentials.is_encrypted())
      assert_equal(
          json.loads(loaded_credentials.data()), raw_credentials_dict
      )
  
imports: import json
  import os
  from collections import OrderedDict
  from botocore.exceptions import ClientError
  from mock import patch, MagicMock
  from moto import mock_kms, mock_ssm
  from nose.tools import assert_equal, assert_false, assert_is_instance, assert_is_none, assert_is_not_none, assert_not_equal, assert_true
  from streamalert.alert_processor.outputs.output_base import OutputProperty
  from streamalert.alert_processor.outputs.credentials.provider import SSMDriver, LocalFileDriver, Credentials, OutputCredentialsProvider, EphemeralUnencryptedDriver, SpooledTempfileDriver, get_formatted_output_credentials_name
  from tests.unit.streamalert.alert_processor import PREFIX, CONFIG, KMS_ALIAS, REGION, MOCK_ENV
  from tests.unit.streamalert.alert_processor.helpers import encrypt_with_kms, setup_mock_kms
label_desc: Use image node_id 6 for calling the TestEphemeralUnencryptedDriver obj's underlying member method code with example usage: obj.test_save_automatically_decrypts() without return types