mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Fix test.assertHelp for commands with long help (XX more messages).
This commit is contained in:
parent
94d09da44a
commit
5f94da8660
@ -286,6 +286,10 @@ class PluginTestCase(SupyTestCase):
|
|||||||
if m is None:
|
if m is None:
|
||||||
raise TimeoutError, query
|
raise TimeoutError, query
|
||||||
self.failUnless(lastGetHelp in m.args[1],
|
self.failUnless(lastGetHelp in m.args[1],
|
||||||
|
msg = m.args[1]
|
||||||
|
if 'more message' in msg:
|
||||||
|
msg = msg[0:-27] # Strip (XXX more messages)
|
||||||
|
self.failUnless(msg in lastGetHelp,
|
||||||
'%s is not the help (%s)' % (m.args[1], lastGetHelp))
|
'%s is not the help (%s)' % (m.args[1], lastGetHelp))
|
||||||
return m
|
return m
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user