summaryrefslogtreecommitdiff
path: root/tests/syndication_tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/syndication_tests')
-rw-r--r--tests/syndication_tests/tests.py28
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/syndication_tests/tests.py b/tests/syndication_tests/tests.py
index 17a408a686..739139db63 100644
--- a/tests/syndication_tests/tests.py
+++ b/tests/syndication_tests/tests.py
@@ -578,51 +578,51 @@ class SyndicationFeedTest(FeedTestCase):
def test_stylesheets(self):
testdata = [
# Plain strings.
- ("/test.xsl", 'href="/test.xsl" type="text/xsl" media="screen"'),
- ("/test.xslt", 'href="/test.xslt" type="text/xsl" media="screen"'),
- ("/test.css", 'href="/test.css" type="text/css" media="screen"'),
+ ("/test.xsl", 'href="/test.xsl" media="screen" type="text/xsl"'),
+ ("/test.xslt", 'href="/test.xslt" media="screen" type="text/xsl"'),
+ ("/test.css", 'href="/test.css" media="screen" type="text/css"'),
("/test", 'href="/test" media="screen"'),
(
"https://example.com/test.xsl",
- 'href="https://example.com/test.xsl" type="text/xsl" media="screen"',
+ 'href="https://example.com/test.xsl" media="screen" type="text/xsl"',
),
(
"https://example.com/test.css",
- 'href="https://example.com/test.css" type="text/css" media="screen"',
+ 'href="https://example.com/test.css" media="screen" type="text/css"',
),
(
"https://example.com/test",
'href="https://example.com/test" media="screen"',
),
- ("/♥.xsl", 'href="/%E2%99%A5.xsl" type="text/xsl" media="screen"'),
+ ("/♥.xsl", 'href="/%E2%99%A5.xsl" media="screen" type="text/xsl"'),
(
static("stylesheet.xsl"),
- 'href="/static/stylesheet.xsl" type="text/xsl" media="screen"',
+ 'href="/static/stylesheet.xsl" media="screen" type="text/xsl"',
),
(
static("stylesheet.css"),
- 'href="/static/stylesheet.css" type="text/css" media="screen"',
+ 'href="/static/stylesheet.css" media="screen" type="text/css"',
),
(static("stylesheet"), 'href="/static/stylesheet" media="screen"'),
(
reverse("syndication-xsl-stylesheet"),
- 'href="/syndication/stylesheet.xsl" type="text/xsl" media="screen"',
+ 'href="/syndication/stylesheet.xsl" media="screen" type="text/xsl"',
),
(
reverse_lazy("syndication-xsl-stylesheet"),
- 'href="/syndication/stylesheet.xsl" type="text/xsl" media="screen"',
+ 'href="/syndication/stylesheet.xsl" media="screen" type="text/xsl"',
),
# Stylesheet objects.
(
Stylesheet("/test.xsl"),
- 'href="/test.xsl" type="text/xsl" media="screen"',
+ 'href="/test.xsl" media="screen" type="text/xsl"',
),
(Stylesheet("/test.xsl", mimetype=None), 'href="/test.xsl" media="screen"'),
(Stylesheet("/test.xsl", media=None), 'href="/test.xsl" type="text/xsl"'),
(Stylesheet("/test.xsl", mimetype=None, media=None), 'href="/test.xsl"'),
(
Stylesheet("/test.xsl", mimetype="text/xml"),
- 'href="/test.xsl" type="text/xml" media="screen"',
+ 'href="/test.xsl" media="screen" type="text/xml"',
),
]
for stylesheet, expected in testdata:
@@ -642,12 +642,12 @@ class SyndicationFeedTest(FeedTestCase):
self.assertEqual(doc.childNodes[0].nodeName, "xml-stylesheet")
self.assertEqual(
doc.childNodes[0].data,
- 'href="/stylesheet1.xsl" type="text/xsl" media="screen"',
+ 'href="/stylesheet1.xsl" media="screen" type="text/xsl"',
)
self.assertEqual(doc.childNodes[1].nodeName, "xml-stylesheet")
self.assertEqual(
doc.childNodes[1].data,
- 'href="/stylesheet2.xsl" type="text/xsl" media="screen"',
+ 'href="/stylesheet2.xsl" media="screen" type="text/xsl"',
)
def test_stylesheets_typeerror_if_str_or_stylesheet(self):