mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 12:12:54 +01:00
test_callbacks: Fix PluginRegexpTestCase to actually check regexp callbacks
This commit is contained in:
parent
d00113e92d
commit
6a943b8342
@ -978,9 +978,12 @@ class MultilinePrivmsgTestCase(ChannelPluginTestCase):
|
||||
class PluginRegexpTestCase(PluginTestCase):
|
||||
plugins = ()
|
||||
class PCAR(callbacks.PluginRegexp):
|
||||
regexps = ("test",)
|
||||
|
||||
def test(self, irc, msg, args):
|
||||
"<foo>"
|
||||
raise callbacks.ArgumentError
|
||||
|
||||
def testNoEscapingArgumentError(self):
|
||||
self.irc.addCallback(self.PCAR(self.irc))
|
||||
self.assertResponse('test', 'test <foo>')
|
||||
|
Loading…
Reference in New Issue
Block a user