mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Fixed testHelp to control its own destiny.
This commit is contained in:
parent
53c37af8f6
commit
ef7cd08fdb
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user