mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Added test for empty nested command.
This commit is contained in:
parent
afbf513df2
commit
50e1690fca
@ -255,6 +255,14 @@ class PrivmsgTestCase(ChannelPluginTestCase):
|
||||
self.assertRegexp('help first firstcmd', 'First', 0) # no re.I flag.
|
||||
self.assertRegexp('help firstrepeat firstcmd', 'FirstRepeat', 0)
|
||||
|
||||
def testEmptyNest(self):
|
||||
self.assertError('echo []')
|
||||
try:
|
||||
conf.replyWhenNotCommand = True
|
||||
self.assertResponse('echo []', '[]')
|
||||
finally:
|
||||
conf.replyWhenNotCommand = False
|
||||
|
||||
def testDispatcherHelp(self):
|
||||
self.assertNotRegexp('help first', r'\(dispatcher')
|
||||
self.assertNotRegexp('help first', r'%s')
|
||||
|
Loading…
Reference in New Issue
Block a user