Permalink
Browse files

Fix test.assertHelp for commands with long help (XX more messages).

  • Loading branch information...
ProgVal committed Aug 8, 2012
1 parent 94d09da commit 5f94da866062138288742792f157bebd93389c3b
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/test.py
View
@@ -286,6 +286,10 @@ def assertHelp(self, query, **kwargs):
if m is None:
raise TimeoutError, query
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))
return m

0 comments on commit 5f94da8

Please sign in to comment.