Updated for the help/morehelp -> syntax/help conversion.

This commit is contained in:
Jeremy Fincher 2003-09-25 08:29:24 +00:00
parent 407ac34e52
commit 359ad14888
3 changed files with 7 additions and 7 deletions

View File

@ -259,7 +259,7 @@ class PluginDocumentation:
for attr in cb.__class__.__dict__:
if cb.isCommand(attr):
self.failUnless(getattr(cb, attr).__doc__,
'%s has no help' % attr)
'%s has no syntax' % attr)
def testAllCommandsHaveMorehelp(self):
for cb in self.irc.callbacks:
if isinstance(cb, callbacks.PrivmsgRegexp):
@ -270,7 +270,7 @@ class PluginDocumentation:
command = getattr(cb, attr)
helps = command.__doc__
self.failUnless(helps and len(helps.splitlines()) >= 3,
'%s has no morehelp' % attr)
'%s has no help' % attr)
def testPluginHasDocumentation(self):
for cb in self.irc.callbacks:

View File

@ -70,8 +70,8 @@ class AliasTestCase(PluginTestCase, PluginDocumentation):
plugins = ('Alias', 'FunCommands', 'Utilities', 'MiscCommands')
def testAliasHelp(self):
self.assertNotError('alias slashdot foo')
self.assertNotRegexp('help slashdot', 'None')
self.assertResponse('morehelp slashdot', "Alias for 'foo'")
self.assertNotRegexp('syntax slashdot', 'None')
self.assertRegexp('help slashdot', "Alias for 'foo'")
def testSimpleAlias(self):
pi = '3.1456926535897932384626433832795028841971693'

View File

@ -35,12 +35,12 @@ class DictTestCase(PluginTestCase, PluginDocumentation):
plugins = ('Dict', 'MiscCommands')
def testHelps(self):
self.assertNotError('list Dict')
self.assertNotError('syntax dict')
self.assertNotError('help dict')
self.assertNotError('morehelp dict')
self.assertNotError('syntax dictionaries')
self.assertNotError('help dictionaries')
self.assertNotError('morehelp dictionaries')
self.assertNotError('syntax randomdictionary')
self.assertNotError('help randomdictionary')
self.assertNotError('morehelp randomdictionary')
def testDict(self):
self.assertNotError('dict slash')