'Specifying dates or message-ids in the extra headers overrides the
default values (#9233)'

def test_message_header_overrides(self):

    headers = {u'date': u'Fri,    09    Nov    2001    01:08:47    -0000', u'Message-ID': u'foo'}
    email = EmailMessage(u'subject', u'content', u'from@example.com', [u'to@example.com'], headers=headers)
    self.assertEqual(sorted(email.message().items()), [(u'Content-Transfer-Encoding', u'7bit'), (u'Content-Type', u'text/plain;    charset="utf-8"'), (u'From', u'from@example.com'), (u'MIME-Version', u'1.0'), (u'Message-ID', u'foo'), (u'Subject', u'subject'), (u'To', u'to@example.com'), (u'date', u'Fri,    09    Nov    2001    01:08:47    -0000')])
