changed testEmptyNest a slight bit.

This commit is contained in:
Jeremy Fincher 2003-10-30 00:15:17 +00:00
parent 646e41bd53
commit b14bc6e3b7

View File

@ -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