text: # coding: utf-8
  
  """
      MailSlurp API
  
      MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more.  ## Resources  - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository  # noqa: E501
  
      The version of the OpenAPI document: 6.5.2
      Generated by: https://openapi-generator.tech
  """
  
  
  from __future__ import absolute_import
  
  import unittest
  import datetime
  
  import mailslurp_client
  from mailslurp_client.models.email import Email  # noqa: E501
  from mailslurp_client.rest import ApiException
  
  class TestEmail(unittest.TestCase):
      """Email unit test stubs"""
  
      def setUp(self):
          pass
  
      def tearDown(self):
          pass
  
      def make_instance(self, include_optional):
          """Test Email
              include_option is a boolean, when False only required
              params are included, when True both required and
              optional params are included """
          # model = mailslurp_client.models.email.Email()  # noqa: E501
          if include_optional :
              return Email(
                  analysis = mailslurp_client.models.email_analysis.EmailAnalysis(
                      dkim_verdict = '0', 
                      dmarc_verdict = '0', 
                      spam_verdict = '0', 
                      spf_verdict = '0', 
                      virus_verdict = '0', ), 
                  attachments = [
                      '0'
                      ], 
                  bcc = [
                      '0'
                      ], 
                  body = '0', 
                  body_excerpt = '0', 
                  body_md5_hash = '0', 
                  cc = [
                      '0'
                      ], 
                  charset = '0', 
                  created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 
                  _from = '0', 
                  headers = {
                      'key' : '0'
                      }, 
                  id = '0', 
                  inbox_id = '0', 
                  is_html = True, 
                  read = True, 
                  recipients = mailslurp_client.models.email_recipients.EmailRecipients(
                      bcc = [
                          mailslurp_client.models.recipient.Recipient(
                              email_address = '0', 
                              name = '0', 
                              raw_value = '0', )
                          ], 
                      cc = [
                          mailslurp_client.models.recipient.Recipient(
                              email_address = '0', 
                              name = '0', 
                              raw_value = '0', )
                          ], 
                      to = [
                          mailslurp_client.models.recipient.Recipient(
                              email_address = '0', 
                              name = '0', 
                              raw_value = '0', )
                          ], ), 
                  reply_to = '0', 
                  sender = mailslurp_client.models.sender.Sender(
                      email_address = '0', 
                      name = '0', 
                      raw_value = '0', ), 
                  subject = '0', 
                  team_access = True, 
                  to = [
                      '0'
                      ], 
                  updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 
                  user_id = '0'
              )
          else :
              return Email(
          )
  
      def testEmail(self):
          """Test Email"""
          inst_req_only = self.make_instance(include_optional=False)
          inst_req_and_optional = self.make_instance(include_optional=True)
  
  
  if __name__ == '__main__':
      unittest.main()
  