Ticket #15237: django_15237.diff
File django_15237.diff, 1.1 KB (added by , 14 years ago) |
---|
-
django/utils/feedgenerator.py
287 287 288 288 class Atom1Feed(SyndicationFeed): 289 289 # Spec: http://atompub.org/2005/07/11/draft-ietf-atompub-format-10.html 290 mime_type = 'application/atom+xml '290 mime_type = 'application/atom+xml; charset=utf8' 291 291 ns = u"http://www.w3.org/2005/Atom" 292 292 293 293 def write(self, outfile, encoding): -
tests/regressiontests/utils/feedgenerator.py
60 60 "2008-11-14T13:37:00+02:00" 61 61 ) 62 62 63 def test_atom1_mime_type(self): 64 """ 65 Test to make sure Atom MIME type has UTF8 Charset parameter set 66 """ 67 atom_feed = feedgenerator.Atom1Feed("title", "link", "description") 68 self.assertEqual( 69 atom_feed.mime_type, "application/atom+xml; charset=utf8" 70 ) 71