def testContentTypeOverride(self): m = Message() m.content_type = "text/html; charset=utf8" m.content = u"<html/>" assert m.content_type == "text/html; charset=utf8"