From d1e59794d1ffa2ad342f5becda84ba2c53ef0ca3 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Fri, 26 Oct 2012 22:40:35 +0200 Subject: [PATCH] [1.5.x] Fixed feedgenerator tests under hash randomization Backport of 46d27a6 from master. --- tests/regressiontests/utils/feedgenerator.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/regressiontests/utils/feedgenerator.py b/tests/regressiontests/utils/feedgenerator.py index b646a5997d..bcd53bb2a0 100644 --- a/tests/regressiontests/utils/feedgenerator.py +++ b/tests/regressiontests/utils/feedgenerator.py @@ -104,10 +104,14 @@ class FeedgeneratorTest(unittest.TestCase): feed = feedgenerator.Rss201rev2Feed('title', '/link/', 'descr') self.assertEqual(feed.feed['feed_url'], None) feed_content = feed.writeString('utf-8') - self.assertNotIn('', feed_content) + self.assertIn('