'Test build of default text email behavior.'

@patch('email.utils.make_msgid', return_value='<mock@mock>')
def test_text_email(self, mock_make_msgid):

    msg = self.mailer.send_message('Test    msg')
    expected = '^Content-Type:    text/plain;    charset="us-ascii"\nMIME-Version:    1.0\nContent-Transfer-Encoding:    7bit\nSubject:    Home    Assistant\nTo:    recip1@example.com,testrecip@test.com\nFrom:    HomeAssistant    <test@test.com>\nX-Mailer:    HomeAssistant\nDate:    [^\n]+\nMessage-Id:    <[^@]+@[^>]+>\n\nTest    msg$'
    self.assertRegex(msg, expected)
