summaryrefslogtreecommitdiff
path: root/tests/syndication_tests
diff options
context:
space:
mode:
authorchillaranand <anand21nanda@gmail.com>2017-01-21 18:43:44 +0530
committerTim Graham <timograham@gmail.com>2017-01-25 12:23:46 -0500
commitd6eaf7c0183cd04b78f2a55e1d60bb7e59598310 (patch)
treeab02fd9949d4bfa23e27dea45e213ce334c883f0 /tests/syndication_tests
parentdc165ec8e5698ffc6dee6b510f1f92c9fd7467fe (diff)
downloaddjango-d6eaf7c0183cd04b78f2a55e1d60bb7e59598310.tar.gz
Refs #23919 -- Replaced super(ClassName, self) with super().
Diffstat (limited to 'tests/syndication_tests')
-rw-r--r--tests/syndication_tests/feeds.py10
-rw-r--r--tests/syndication_tests/tests.py2
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/syndication_tests/feeds.py b/tests/syndication_tests/feeds.py
index 87c8d962b7..0805258138 100644
--- a/tests/syndication_tests/feeds.py
+++ b/tests/syndication_tests/feeds.py
@@ -131,7 +131,7 @@ class TemplateContextFeed(TestRss2Feed):
description_template = 'syndication/description_context.html'
def get_context_data(self, **kwargs):
- context = super(TemplateContextFeed, self).get_context_data(**kwargs)
+ context = super().get_context_data(**kwargs)
context['foo'] = 'bar'
return context
@@ -164,21 +164,21 @@ class MyCustomAtom1Feed(feedgenerator.Atom1Feed):
Test of a custom feed generator class.
"""
def root_attributes(self):
- attrs = super(MyCustomAtom1Feed, self).root_attributes()
+ attrs = super().root_attributes()
attrs['django'] = 'rocks'
return attrs
def add_root_elements(self, handler):
- super(MyCustomAtom1Feed, self).add_root_elements(handler)
+ super().add_root_elements(handler)
handler.addQuickElement('spam', 'eggs')
def item_attributes(self, item):
- attrs = super(MyCustomAtom1Feed, self).item_attributes(item)
+ attrs = super().item_attributes(item)
attrs['bacon'] = 'yum'
return attrs
def add_item_elements(self, handler, item):
- super(MyCustomAtom1Feed, self).add_item_elements(handler, item)
+ super().add_item_elements(handler, item)
handler.addQuickElement('ministry', 'silly walks')
diff --git a/tests/syndication_tests/tests.py b/tests/syndication_tests/tests.py
index c9baa6537b..0563fd444c 100644
--- a/tests/syndication_tests/tests.py
+++ b/tests/syndication_tests/tests.py
@@ -64,7 +64,7 @@ class SyndicationFeedTest(FeedTestCase):
"""
@classmethod
def setUpClass(cls):
- super(SyndicationFeedTest, cls).setUpClass()
+ super().setUpClass()
# This cleanup is necessary because contrib.sites cache
# makes tests interfere with each other, see #11505
Site.objects.clear_cache()