mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-02 15:44:06 +01:00
changed testEmptyNest a slight bit.
This commit is contained in:
parent
646e41bd53
commit
b14bc6e3b7
@ -256,9 +256,10 @@ class PrivmsgTestCase(ChannelPluginTestCase):
|
|||||||
self.assertRegexp('help firstrepeat firstcmd', 'FirstRepeat', 0)
|
self.assertRegexp('help firstrepeat firstcmd', 'FirstRepeat', 0)
|
||||||
|
|
||||||
def testEmptyNest(self):
|
def testEmptyNest(self):
|
||||||
self.assertError('echo []')
|
|
||||||
try:
|
try:
|
||||||
conf.replyWhenNotCommand = True
|
conf.replyWhenNotCommand = True
|
||||||
|
self.assertError('echo []')
|
||||||
|
conf.replyWhenNotCommand = False
|
||||||
self.assertResponse('echo []', '[]')
|
self.assertResponse('echo []', '[]')
|
||||||
finally:
|
finally:
|
||||||
conf.replyWhenNotCommand = False
|
conf.replyWhenNotCommand = False
|
||||||
|
Loading…
Reference in New Issue
Block a user