class_docstr: Test class for SESOutput
docstr: SESOutput - Test sender
docstr_tok: ["SESOutput","-","Test","sender"]
code: def test_build_email_from_email(self):
      """SESOutput - Test sender"""
      rule_name = "test_sender"
  
      alert = get_random_alert(10, rule_name, omit_rule_desc=True)
      output = MagicMock(spec=SESOutput)
      alert_publication = compose_alert(alert, output, self.DESCRIPTOR)
  
      msg = SESOutput._build_email(alert, alert_publication, self.CREDS)
  
      # verify to_emails is set
      assert_equal(msg["From"], self.CREDS["from_email"])
  
imports: from email.mime.application import MIMEApplication
  from email.mime.text import MIMEText
  import boto3
  from mock import MagicMock, Mock, patch
  from moto import mock_kinesis, mock_s3, mock_sns, mock_sqs, mock_ses
  from nose.tools import assert_equal, assert_false, assert_is_not_none, assert_true
  from streamalert.alert_processor.helpers import compose_alert
  from streamalert.alert_processor.outputs.output_base import OutputProperty
  from streamalert.alert_processor.outputs import aws
  from streamalert.alert_processor.outputs.aws import AWSOutput, KinesisFirehoseOutput, LambdaOutput, S3Output, SESOutput, SNSOutput, SQSOutput, CloudwatchLogOutput, LambdaOutputV2
  from tests.unit.streamalert.alert_processor import CONFIG, MOCK_ENV, REGION
  from tests.unit.streamalert.alert_processor.helpers import get_alert, get_random_alert
label_desc: Use image node_id 6 for calling the TestSESOutput obj's underlying member method code with example usage: obj.test_build_email_from_email() without return types