Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed feedgenerator tests under hash randomization

  • Loading branch information...
commit 46d27a6b8d8e988f665d102a1504e178133f7668 1 parent 195bc37
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.