Fixed #15237 -- Fixed a typo in specifying UTF-8 encoding in the feed generator and signing tests. Thanks, Aymeric Augustin.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16738 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jannis Leidel 2011-09-09 18:34:33 +00:00
parent 8258fe7845
commit e55bbf4c3c
3 changed files with 3 additions and 3 deletions

View File

@ -285,7 +285,7 @@ class Rss201rev2Feed(RssFeed):
class Atom1Feed(SyndicationFeed):
# Spec: http://atompub.org/2005/07/11/draft-ietf-atompub-format-10.html
mime_type = 'application/atom+xml; charset=utf8'
mime_type = 'application/atom+xml; charset=utf-8'
ns = u"http://www.w3.org/2005/Atom"
def write(self, outfile, encoding):

View File

@ -13,7 +13,7 @@ class TestSigner(TestCase):
for s in (
'hello',
'3098247:529:087:',
u'\u2019'.encode('utf8'),
u'\u2019'.encode('utf-8'),
):
self.assertEqual(
signer.signature(s),

View File

@ -66,6 +66,6 @@ class FeedgeneratorTest(unittest.TestCase):
"""
atom_feed = feedgenerator.Atom1Feed("title", "link", "description")
self.assertEqual(
atom_feed.mime_type, "application/atom+xml; charset=utf8"
atom_feed.mime_type, "application/atom+xml; charset=utf-8"
)