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

import unittest

from fake_mail_client.message import MessageFaker

class MailerTestCase(unittest.TestCase):

    def test_simple_message(self):
        msg = MessageFaker().create_message()
        for field in ['id', 'message', 'date', 'from', 'tos', 'from_ip', 
                      'from_heloname', 'from_hostname']:
            self.assertTrue(field in msg, "not field is msg [%s]" % field)
            self.assertIsNotNone(msg[field], "field is None [%s]" % field)
            
        self.assertEqual(len(msg["tos"]), 1)

d909dfe3d50b7a7af4b0cbd6eadf8bf5ea2f645d
<mask token>

<mask token>


class MailerTestCase(unittest.TestCase):
    <mask token>

<mask token>


class MailerTestCase(unittest.TestCase):

    def test_simple_message(self):
        msg = MessageFaker().create_message()
        for field in ['id', 'message', 'date', 'from', 'tos', 'from_ip',
            'from_heloname', 'from_hostname']:
            self.assertTrue(field in msg, 'not field is msg [%s]' % field)
            self.assertIsNotNone(msg[field], 'field is None [%s]' % field)
        self.assertEqual(len(msg['tos']), 1)

import unittest
from fake_mail_client.message import MessageFaker


class MailerTestCase(unittest.TestCase):

    def test_simple_message(self):
        msg = MessageFaker().create_message()
        for field in ['id', 'message', 'date', 'from', 'tos', 'from_ip',
            'from_heloname', 'from_hostname']:
            self.assertTrue(field in msg, 'not field is msg [%s]' % field)
            self.assertIsNotNone(msg[field], 'field is None [%s]' % field)
        self.assertEqual(len(msg['tos']), 1)

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

import unittest

from fake_mail_client.message import MessageFaker

class MailerTestCase(unittest.TestCase):

    def test_simple_message(self):
        msg = MessageFaker().create_message()
        for field in ['id', 'message', 'date', 'from', 'tos', 'from_ip', 
                      'from_heloname', 'from_hostname']:
            self.assertTrue(field in msg, "not field is msg [%s]" % field)
            self.assertIsNotNone(msg[field], "field is None [%s]" % field)
            
        self.assertEqual(len(msg["tos"]), 1)
