

def test_both_message_and_text(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"]} --text This_is_another_body'
    args_list = (self.prefix + args).split()
    self.run_cmd(args_list, expected_rc=255)

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