mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #28324 -- Made feedgenerators write feeds with deterministically ordered attributes.
This commit is contained in:
committed by
Tim Graham
parent
335a8d7895
commit
d0f59054d0
@@ -126,6 +126,11 @@ class FeedgeneratorTest(unittest.TestCase):
|
||||
feed.add_item('item_title', 'item_link', 'item_description')
|
||||
feed.writeString('utf-8')
|
||||
|
||||
def test_deterministic_attribute_order(self):
|
||||
feed = feedgenerator.Atom1Feed('title', '/link/', 'desc')
|
||||
feed_content = feed.writeString('utf-8')
|
||||
self.assertIn('href="/link/" rel="alternate"', feed_content)
|
||||
|
||||
|
||||
class FeedgeneratorDBTest(TestCase):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user