mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-26 12:43:09 +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):
|
class PluginRegexpTestCase(PluginTestCase):
|
||||||
plugins = ()
|
plugins = ()
|
||||||
class PCAR(callbacks.PluginRegexp):
|
class PCAR(callbacks.PluginRegexp):
|
||||||
|
regexps = ("test",)
|
||||||
|
|
||||||
def test(self, irc, msg, args):
|
def test(self, irc, msg, args):
|
||||||
"<foo>"
|
"<foo>"
|
||||||
raise callbacks.ArgumentError
|
raise callbacks.ArgumentError
|
||||||
|
|
||||||
def testNoEscapingArgumentError(self):
|
def testNoEscapingArgumentError(self):
|
||||||
self.irc.addCallback(self.PCAR(self.irc))
|
self.irc.addCallback(self.PCAR(self.irc))
|
||||||
self.assertResponse('test', 'test <foo>')
|
self.assertResponse('test', 'test <foo>')
|
||||||
|
Loading…
Reference in New Issue
Block a user