Fixed testHelp to control its own destiny.

This commit is contained in:
Jeremy Fincher 2003-10-20 03:55:26 +00:00
parent 53c37af8f6
commit ef7cd08fdb

View File

@ -67,7 +67,12 @@ class MiscCommandsTestCase(ChannelPluginTestCase, PluginDocumentation):
def testHelp(self):
self.assertNotError('help list')
self.assertNotError('help @list')
try:
original = conf.prefixChars
conf.prefixChars = '@'
self.assertNotError('help @list')
finally:
conf.prefixChars = original
self.assertNotError('help syntax')
self.assertRegexp('help help', r'^\x02\(help')
self.assertError('help morehelp')