Add some tests for Sf.todo* and make a little TODO for anyone that's

interested/me to remember
This commit is contained in:
James Vega 2004-01-21 06:32:17 +00:00
parent c801aa9c46
commit 2963fd352d
2 changed files with 7 additions and 0 deletions

View File

@ -219,6 +219,8 @@ class Sourceforge(callbacks.PrivmsgCommandAndRegexp):
return
irc.reply(self._getTrackerList(url))
# TODO: consolidate total* into one command which takes options for all
# the viable statistics that can be snarfed from the project page
_totbugs = re.compile(r'Bugs</a>\s+?\( <b>([^<]+)</b>', re.S | re.I)
def totalbugs(self, irc, msg, args):
"""[<project>]

View File

@ -183,5 +183,10 @@ if network:
self.assertNoResponse('https://sourceforge.net/tracker/?'
'group_id=58965&atid=489447')
def testTotal(self):
self.assertRegexp('totalbugs gaim', r'\d+ open / \d+ total')
self.assertRegexp('totalrfes gaim', r'\d+ open / \d+ total')
self.assertError('totalbugs lkjfad')
self.assertError('totalrfes lkjfad')
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: