mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
Forgot to remove the urlSnarfer test.
This commit is contained in:
parent
9914f2d28e
commit
43fbd5ac77
@ -60,31 +60,6 @@ class FunctionsTest(SupyTestCase):
|
||||
self.assertEqual(privmsgs.getArgs(args, required=0, optional=1),
|
||||
' '.join(args))
|
||||
|
||||
class UrlSnarferTestCase(PluginTestCase):
|
||||
plugins = ()
|
||||
class URL1(callbacks.PrivmsgCommandAndRegexp):
|
||||
regexps = ['F', 'G']
|
||||
def __init__(self):
|
||||
self.FCalled = False
|
||||
self.GCalled = False
|
||||
callbacks.PrivmsgCommandAndRegexp.__init__(self)
|
||||
|
||||
def F(self, irc, msg, match):
|
||||
r"."
|
||||
self.FCalled = True
|
||||
F = privmsgs.urlSnarfer(F)
|
||||
|
||||
def G(self, irc, msg, match):
|
||||
r"."
|
||||
self.GCalled = True
|
||||
G = privmsgs.urlSnarfer(G)
|
||||
|
||||
def test(self):
|
||||
cb = self.URL1()
|
||||
self.irc.addCallback(cb)
|
||||
self.assertNoResponse('foo', 1)
|
||||
self.failUnless(cb.FCalled and cb.GCalled)
|
||||
|
||||
|
||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user