diff options
author | Bastian Venthur <bastian.venthur@flixbus.com> | 2022-08-30 15:31:01 +0200 |
---|---|---|
committer | Bastian Venthur <bastian.venthur@flixbus.com> | 2022-08-30 15:31:01 +0200 |
commit | 2f441dce83719a8ff2bfc40a980213ad360a9062 (patch) | |
tree | e44995984fd40b4903603991eb11f77e7e8013f1 | |
parent | db49b9b1b5bafd59dcf547c2ab66da8f5cc730cd (diff) | |
download | feedgenerator-2f441dce83719a8ff2bfc40a980213ad360a9062.tar.gz |
This adds a non-ASCII charachter into the test case to cover if we
convert properly using percent-encoding.
Apparently we do, so no other change is needed. Closes: #21
-rw-r--r-- | tests/test_feedgenerator.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_feedgenerator.py b/tests/test_feedgenerator.py index c8a5b34..709d8db 100644 --- a/tests/test_feedgenerator.py +++ b/tests/test_feedgenerator.py @@ -17,7 +17,7 @@ FIXT_FEED = dict( ) FIXT_ITEM = dict( title="Hello", - link="http://www.holovaty.com/test/", + link="http://www.holovaty.com/täst/", description="Testing.", content="Full content of our testing entry.", pubdate=datetime.datetime(2016,8,11,0,0,0,0), @@ -29,14 +29,14 @@ EXPECTED_RESULT_RSS = """<?xml version="1.0" encoding="utf-8"?> Umlauts: äöüßÄÖÜ Chinese: 老师是四十四,是不是? Finnish: Mustan kissan paksut posket. (ah, no special chars) Kärpänen sanoi kärpäselle: tuu kattoon kattoon ku kaveri tapettiin tapettiin. - </description><language>en</language><lastBuildDate>%DATE%</lastBuildDate><item><title>Hello</title><link>http://www.holovaty.com/test/</link><description>Testing.</description><pubDate>Thu, 11 Aug 2016 00:00:00 -0000</pubDate></item></channel></rss>""" + </description><language>en</language><lastBuildDate>%DATE%</lastBuildDate><item><title>Hello</title><link>http://www.holovaty.com/t%C3%A4st/</link><description>Testing.</description><pubDate>Thu, 11 Aug 2016 00:00:00 -0000</pubDate></item></channel></rss>""" EXPECTED_RESULT_ATOM = """<?xml version="1.0" encoding="utf-8"?> <feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Poynter E-Media Tidbits</title><link href="http://www.poynter.org/column.asp?id=31" rel="alternate"></link><id>http://www.poynter.org/column.asp?id=31</id><updated>%DATE%</updated><subtitle>A group Weblog by the sharpest minds in online media/journalism/publishing. Umlauts: äöüßÄÖÜ Chinese: 老师是四十四,是不是? Finnish: Mustan kissan paksut posket. (ah, no special chars) Kärpänen sanoi kärpäselle: tuu kattoon kattoon ku kaveri tapettiin tapettiin. - </subtitle><entry><title>Hello</title><link href="http://www.holovaty.com/test/" rel="alternate"></link><published>2016-08-11T00:00:00Z</published><updated>2016-08-11T00:00:00Z</updated><id>tag:www.holovaty.com,2016-08-11:/test/</id><summary type="html">Testing.</summary><content type="html">Full content of our testing entry.</content></entry></feed>""" + </subtitle><entry><title>Hello</title><link href="http://www.holovaty.com/t%C3%A4st/" rel="alternate"></link><published>2016-08-11T00:00:00Z</published><updated>2016-08-11T00:00:00Z</updated><id>tag:www.holovaty.com,2016-08-11:/t%C3%A4st/</id><summary type="html">Testing.</summary><content type="html">Full content of our testing entry.</content></entry></feed>""" ENCODING = 'utf-8' |