diff --git a/plugins/Sourceforge.py b/plugins/Sourceforge.py
index 420687fbc..61317ba9f 100644
--- a/plugins/Sourceforge.py
+++ b/plugins/Sourceforge.py
@@ -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\s+?\( ([^<]+)', re.S | re.I)
def totalbugs(self, irc, msg, args):
"""[]
diff --git a/test/test_Sourceforge.py b/test/test_Sourceforge.py
index b10f375ff..01503a8e2 100644
--- a/test/test_Sourceforge.py
+++ b/test/test_Sourceforge.py
@@ -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: