summaryrefslogtreecommitdiff
path: root/tests/syndication_tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-12-31 08:27:32 -0500
committerTim Graham <timograham@gmail.com>2017-01-17 20:52:01 -0500
commit75cf9b5ac031feb8f94271c9906157c921a14520 (patch)
tree51061671e97c44a71f080329497f5afb49b95585 /tests/syndication_tests
parentd67a46e10459858b681176a3e1f8c6bca39d2ac7 (diff)
downloaddjango-75cf9b5ac031feb8f94271c9906157c921a14520.tar.gz
Refs #13110 -- Removed SyndicationFeed.add_item()'s enclosure argument.
Per deprecation timeline.
Diffstat (limited to 'tests/syndication_tests')
-rw-r--r--tests/syndication_tests/tests.py18
1 files changed, 1 insertions, 17 deletions
diff --git a/tests/syndication_tests/tests.py b/tests/syndication_tests/tests.py
index f8948ac21d..0fb860474c 100644
--- a/tests/syndication_tests/tests.py
+++ b/tests/syndication_tests/tests.py
@@ -9,10 +9,7 @@ from django.core.exceptions import ImproperlyConfigured
from django.test import TestCase, override_settings
from django.test.utils import requires_tz_support
from django.utils import timezone
-from django.utils.deprecation import RemovedInDjango20Warning
-from django.utils.feedgenerator import (
- Enclosure, SyndicationFeed, rfc2822_date, rfc3339_date,
-)
+from django.utils.feedgenerator import rfc2822_date, rfc3339_date
from .models import Article, Entry
@@ -520,16 +517,3 @@ class SyndicationFeedTest(FeedTestCase):
views.add_domain('example.com', '//example.com/foo/?arg=value'),
'http://example.com/foo/?arg=value'
)
-
-
-class FeedgeneratorTestCase(TestCase):
- def test_add_item_warns_when_enclosure_kwarg_is_used(self):
- feed = SyndicationFeed(title='Example', link='http://example.com', description='Foo')
- msg = 'The enclosure keyword argument is deprecated, use enclosures instead.'
- with self.assertRaisesMessage(RemovedInDjango20Warning, msg):
- feed.add_item(
- title='Example Item',
- link='https://example.com/item',
- description='bar',
- enclosure=Enclosure('http://example.com/favicon.ico', 0, 'image/png'),
- )