mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Changed to a ChannelPluginTestCase.
This commit is contained in:
parent
58cf080109
commit
138c87f372
@ -33,7 +33,7 @@ import re
|
|||||||
|
|
||||||
from test import *
|
from test import *
|
||||||
|
|
||||||
class SourceforgeTest(PluginTestCase, PluginDocumentation):
|
class SourceforgeTest(ChannelPluginTestCase, PluginDocumentation):
|
||||||
plugins = ('Sourceforge',)
|
plugins = ('Sourceforge',)
|
||||||
def testBugs(self):
|
def testBugs(self):
|
||||||
self.assertHelp('bugs')
|
self.assertHelp('bugs')
|
||||||
@ -89,10 +89,11 @@ class SourceforgeTest(PluginTestCase, PluginDocumentation):
|
|||||||
'group_id=58965&atid=489447')
|
'group_id=58965&atid=489447')
|
||||||
|
|
||||||
def testToggle(self):
|
def testToggle(self):
|
||||||
s = r'.*Status.*: \w+'
|
s = r'Status.*: \w+'
|
||||||
self.assertRegexp('http://sourceforge.net/tracker/index.php?'\
|
self.assertRegexp('http://sourceforge.net/tracker/index.php?'\
|
||||||
'func=detail&aid=540223&group_id=235&atid=300235', s)
|
'func=detail&aid=540223&group_id=235&atid=300235', s)
|
||||||
self.assertNotError('Sourceforge toggle tracker off')
|
self.assertNotError('Sourceforge toggle tracker off')
|
||||||
|
self.failIf(self.irc.takeMsg())
|
||||||
self.assertNoResponse('http://sourceforge.net/tracker/index.php?'\
|
self.assertNoResponse('http://sourceforge.net/tracker/index.php?'\
|
||||||
'func=detail&aid=540223&group_id=235&atid=300235')
|
'func=detail&aid=540223&group_id=235&atid=300235')
|
||||||
self.assertNotError('Sourceforge toggle tracker on')
|
self.assertNotError('Sourceforge toggle tracker on')
|
||||||
|
Loading…
Reference in New Issue
Block a user