mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
Added a test for nested plugins having the same command name as the plugin name. It fails right now.
This commit is contained in:
parent
ecca13ec11
commit
52fabfdaf7
@ -522,6 +522,13 @@ class SourceNestedPluginTestCase(PluginTestCase):
|
||||
J
|
||||
"""
|
||||
irc.reply('j')
|
||||
class same(callbacks.Commands):
|
||||
def same(self, irc, msg, args):
|
||||
"""takes no arguments
|
||||
|
||||
same
|
||||
"""
|
||||
irc.reply('same')
|
||||
|
||||
def test(self):
|
||||
cb = self.E(self.irc)
|
||||
@ -539,6 +546,11 @@ class SourceNestedPluginTestCase(PluginTestCase):
|
||||
self.assertHelp('help e g i j')
|
||||
self.assertRegexp('list e', 'f, g h, and g i j')
|
||||
|
||||
def testCommandSameNameAsNestedPlugin(self):
|
||||
cb = self.E(self.irc)
|
||||
self.irc.addCallback(cb)
|
||||
self.assertResponse('e same', 'same')
|
||||
|
||||
|
||||
class WithPrivateNoticeTestCase(ChannelPluginTestCase):
|
||||
plugins = ('Utilities',)
|
||||
|
Loading…
Reference in New Issue
Block a user