'Non-ASCII characters encoded as valid UTF-8 are correctly transported
and decoded.'

def test_attach_utf8_text_as_bytes(self):

    msg = EmailMessage('subject', 'body', 'from@example.com', ['to@example.com'])
    msg.attach('file.txt', '\xc3\xa4')
    (filename, content, mimetype) = self.get_decoded_attachments(msg)[0]
    self.assertEqual(filename, 'file.txt')
    self.assertEqual(content, '\xc3\xa4')
    self.assertEqual(mimetype, 'text/plain')
