mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #15237 -- Always set charset of Atom1 feeds to UTF-8. Thanks, Simon and jasonkotenko.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15505 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
ba1876cef2
commit
632d9f994f
3 changed files with 11 additions and 3 deletions
|
@ -60,3 +60,12 @@ class FeedgeneratorTest(unittest.TestCase):
|
|||
"2008-11-14T13:37:00+02:00"
|
||||
)
|
||||
|
||||
def test_atom1_mime_type(self):
|
||||
"""
|
||||
Test to make sure Atom MIME type has UTF8 Charset parameter set
|
||||
"""
|
||||
atom_feed = feedgenerator.Atom1Feed("title", "link", "description")
|
||||
self.assertEqual(
|
||||
atom_feed.mime_type, "application/atom+xml; charset=utf8"
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue