From 5980afc86f977d899f19fb36767ab623e54f0bcd Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 10 Dec 2003 04:46:51 +0000 Subject: [PATCH] Made URL easily changeable and changed it to advogato. --- test/test_RSS.py | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/test/test_RSS.py b/test/test_RSS.py index 1711c1b2b..8249c934d 100644 --- a/test/test_RSS.py +++ b/test/test_RSS.py @@ -31,30 +31,32 @@ from testsupport import * +url = 'http://advogato.org/rss/articles.xml' class RSSTestCase(PluginTestCase, PluginDocumentation): plugins = ('RSS',) def testRssinfo(self): - self.assertNotError('rss info http://slashdot.org/slashdot.rss') + self.assertNotError('rss info %s' % url) + + def testRssinfoDoesTimeProperly(self): self.assertNotRegexp('rss info http://slashdot.org/slashdot.rss', '-1 years') def testRss(self): - self.assertNotError('rss http://slashdot.org/slashdot.rss') + self.assertNotError('rss %s' % url) def testRssAdd(self): - self.assertNotError('rss add slashdot ' - 'http://slashdot.org/slashdot.rss') - self.assertNotError('slashdot') - self.assertNotError('rss slashdot') - self.assertNotError('rss remove slashdot') - self.assertError('slashdot') - self.assertError('rss slashdot') + self.assertNotError('rss add advogato %s' % url) + self.assertNotError('advogato') + self.assertNotError('rss advogato') + self.assertNotError('rss remove advogato') + self.assertError('advogato') + self.assertError('rss advogato') def testCantAddFeedNamedRss(self): - self.assertError('rss add rss http://slashdot.org/slashdot.rss') + self.assertError('rss add rss %s' % url) def testCantRemoveMethodThatIsntFeed(self): - self.assertError('rss remvoe rss') + self.assertError('rss remove rss') # vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: