# Path: lamvery/actions/decrypt.py
# class DecryptAction(BaseAction):
# 
#     def __init__(self, args):
#         super(DecryptAction, self).__init__(args)
#         self._name = args.secret_name
# 
#     def action(self):
#         text = self.get_kms_client().decrypt(
#             self._config.get_secret().get('cipher_texts').get(self._name))
#         print(text)


from unittest import TestCase
from mock import Mock, patch
from lamvery.actions.decrypt import DecryptAction
# -*- coding: utf-8 -*-




def default_args():
    args = Mock()
    args.conf_file = '.lamvery.yml'
    args.secret_name = 'bar'
    return args


class DecryptActionTestCase(TestCase):

    def test_action(self):
        with patch('lamvery.actions.base.KmsClient'):

# Path: lamvery/actions/decrypt.py
# class DecryptAction(BaseAction):
# 
#     def __init__(self, args):
#         super(DecryptAction, self).__init__(args)
#         self._name = args.secret_name
# 
#     def action(self):
#         text = self.get_kms_client().decrypt(
#             self._config.get_secret().get('cipher_texts').get(self._name))
#         print(text)


# Path: tests/lamvery/actions/decrypt_test.py
from unittest import TestCase
from mock import Mock, patch
from lamvery.actions.decrypt import DecryptAction

# -*- coding: utf-8 -*-




def default_args():
    args = Mock()
    args.conf_file = '.lamvery.yml'
    args.secret_name = 'bar'
    return args


class DecryptActionTestCase(TestCase):

    def test_action(self):
        with patch('lamvery.actions.base.KmsClient'):

            action = DecryptAction(default_args())