Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.5.x] Fixed feedgenerator tests under hash randomization

Backport of 46d27a6 from master.
  • Loading branch information...
commit d1e59794d1ffa2ad342f5becda84ba2c53ef0ca3 1 parent 1b4b0dc
Aymeric Augustin aaugustin authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 tests/regressiontests/utils/feedgenerator.py
8 tests/regressiontests/utils/feedgenerator.py
View
@@ -104,10 +104,14 @@ def test_feed_without_feed_url_gets_rendered_without_atom_link(self):
feed = feedgenerator.Rss201rev2Feed('title', '/link/', 'descr')
self.assertEqual(feed.feed['feed_url'], None)
feed_content = feed.writeString('utf-8')
- self.assertNotIn('<atom:link href=', feed_content)
+ self.assertNotIn('<atom:link', feed_content)
+ self.assertNotIn('href="/feed/"', feed_content)
+ self.assertNotIn('rel="self"', feed_content)
def test_feed_with_feed_url_gets_rendered_with_atom_link(self):
feed = feedgenerator.Rss201rev2Feed('title', '/link/', 'descr', feed_url='/feed/')
self.assertEqual(feed.feed['feed_url'], '/feed/')
feed_content = feed.writeString('utf-8')
- self.assertIn('<atom:link href="/feed/" rel="self"></atom:link>', feed_content)
+ self.assertIn('<atom:link', feed_content)
+ self.assertIn('href="/feed/"', feed_content)
+ self.assertIn('rel="self"', feed_content)
Please sign in to comment.
Something went wrong with that request. Please try again.