summaryrefslogtreecommitdiff
path: root/tests/syndication_tests
diff options
context:
space:
mode:
authorUnai Zalakain <unai@gisa-elkartea.org>2015-09-19 07:59:18 +0200
committerUnai Zalakain <unai@gisa-elkartea.org>2015-09-19 15:54:33 +0200
commita4b80e242162a7d6ac2337a2a621a82027c549b7 (patch)
treed34c407cfeb0df92c083daa8f53bc0e344625a25 /tests/syndication_tests
parent1a09b3c398b42800de864023dad872d83b196181 (diff)
downloaddjango-a4b80e242162a7d6ac2337a2a621a82027c549b7.tar.gz
Refs #13110 -- Fixed mistakes in the new multiple enclosure feed tests
Diffstat (limited to 'tests/syndication_tests')
-rw-r--r--tests/syndication_tests/feeds.py4
-rw-r--r--tests/syndication_tests/tests.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/syndication_tests/feeds.py b/tests/syndication_tests/feeds.py
index ce938b8356..f4162b345e 100644
--- a/tests/syndication_tests/feeds.py
+++ b/tests/syndication_tests/feeds.py
@@ -208,6 +208,6 @@ class TestMultipleEnclosureAtomFeed(TestAtomFeed):
"""
def item_enclosures(self, item):
return [
- feedgenerator.Enclosure('http://example.com/hello.png', 0, 'image/png'),
- feedgenerator.Enclosure('http://example.com/goodbye.png', 0, 'image/png'),
+ feedgenerator.Enclosure('http://example.com/hello.png', '0', 'image/png'),
+ feedgenerator.Enclosure('http://example.com/goodbye.png', '0', 'image/png'),
]
diff --git a/tests/syndication_tests/tests.py b/tests/syndication_tests/tests.py
index 5a7cfbb057..5369320bdd 100644
--- a/tests/syndication_tests/tests.py
+++ b/tests/syndication_tests/tests.py
@@ -300,7 +300,7 @@ class SyndicationFeedTest(FeedTestCase):
self.assertNotEqual(published, updated)
def test_atom_single_enclosure(self):
- response = self.client.get('/syndication/rss2/single-enclosure/')
+ response = self.client.get('/syndication/atom/single-enclosure/')
feed = minidom.parseString(response.content).firstChild
items = feed.getElementsByTagName('entry')
for item in items:
@@ -309,7 +309,7 @@ class SyndicationFeedTest(FeedTestCase):
self.assertEqual(len(links), 1)
def test_atom_multiple_enclosures(self):
- response = self.client.get('/syndication/rss2/single-enclosure/')
+ response = self.client.get('/syndication/atom/multiple-enclosure/')
feed = minidom.parseString(response.content).firstChild
items = feed.getElementsByTagName('entry')
for item in items: