summaryrefslogtreecommitdiff
path: root/tests/syndication_tests/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/syndication_tests/tests.py')
-rw-r--r--tests/syndication_tests/tests.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/syndication_tests/tests.py b/tests/syndication_tests/tests.py
index 28fe026414..e98ac354b0 100644
--- a/tests/syndication_tests/tests.py
+++ b/tests/syndication_tests/tests.py
@@ -452,7 +452,11 @@ class SyndicationFeedTest(FeedTestCase):
An ImproperlyConfigured is raised if no link could be found for the
item(s).
"""
- with self.assertRaises(ImproperlyConfigured):
+ msg = (
+ 'Give your Article class a get_absolute_url() method, or define '
+ 'an item_link() method in your Feed class.'
+ )
+ with self.assertRaisesMessage(ImproperlyConfigured, msg):
self.client.get('/syndication/articles/')
def test_template_feed(self):