

def test_using_json(self):
    args = ' --message {"Subject":{"Data":"This_is_a_test"},"Body":{"Text":{"Data":"This_is_the_message"}}} --from foo@bar.com --destination {"ToAddresses":["fie@baz.com"]}'
    args_list = (self.prefix + args).split()
    result = {
        'Destination': {
            'ToAddresses': ['fie@baz.com'],
        },
        'Message': {
            'Subject': {
                'Data': 'This_is_a_test',
            },
            'Body': {
                'Text': {
                    'Data': 'This_is_the_message',
                },
            },
        },
        'Source': 'foo@bar.com',
    }
    self.assert_params_for_cmd(args_list, result)

dataset/ETHPy150Open aws/aws-cli/tests/functional/ses/test_send_email.py TestSendEmail.test_using_json/original