mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Made URL easily changeable and changed it to advogato.
This commit is contained in:
parent
091be1311d
commit
5980afc86f
@ -31,30 +31,32 @@
|
|||||||
|
|
||||||
from testsupport import *
|
from testsupport import *
|
||||||
|
|
||||||
|
url = 'http://advogato.org/rss/articles.xml'
|
||||||
class RSSTestCase(PluginTestCase, PluginDocumentation):
|
class RSSTestCase(PluginTestCase, PluginDocumentation):
|
||||||
plugins = ('RSS',)
|
plugins = ('RSS',)
|
||||||
def testRssinfo(self):
|
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',
|
self.assertNotRegexp('rss info http://slashdot.org/slashdot.rss',
|
||||||
'-1 years')
|
'-1 years')
|
||||||
|
|
||||||
def testRss(self):
|
def testRss(self):
|
||||||
self.assertNotError('rss http://slashdot.org/slashdot.rss')
|
self.assertNotError('rss %s' % url)
|
||||||
|
|
||||||
def testRssAdd(self):
|
def testRssAdd(self):
|
||||||
self.assertNotError('rss add slashdot '
|
self.assertNotError('rss add advogato %s' % url)
|
||||||
'http://slashdot.org/slashdot.rss')
|
self.assertNotError('advogato')
|
||||||
self.assertNotError('slashdot')
|
self.assertNotError('rss advogato')
|
||||||
self.assertNotError('rss slashdot')
|
self.assertNotError('rss remove advogato')
|
||||||
self.assertNotError('rss remove slashdot')
|
self.assertError('advogato')
|
||||||
self.assertError('slashdot')
|
self.assertError('rss advogato')
|
||||||
self.assertError('rss slashdot')
|
|
||||||
|
|
||||||
def testCantAddFeedNamedRss(self):
|
def testCantAddFeedNamedRss(self):
|
||||||
self.assertError('rss add rss http://slashdot.org/slashdot.rss')
|
self.assertError('rss add rss %s' % url)
|
||||||
|
|
||||||
def testCantRemoveMethodThatIsntFeed(self):
|
def testCantRemoveMethodThatIsntFeed(self):
|
||||||
self.assertError('rss remvoe rss')
|
self.assertError('rss remove rss')
|
||||||
|
|
||||||
|
|
||||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||||
|
Loading…
Reference in New Issue
Block a user