def help_problems(command_name, help_text):
 problems = []
 expected_start = u'Usage: {command}'.format(command=command_name).encode('utf8')
 if (not help_text.startswith(expected_start)):
  problems.append('Does not begin with {expected}. Found {actual} instead'.format(expected=repr(expected_start), actual=repr(help_text[:len(expected_start)])))
 return problems

def help_problems ( command_name , help_text ) : problems = [ ] expected_start = u'Usage: {command}' . format ( command = command_name ) . encode ( 'utf8' ) if ( not help_text . startswith ( expected_start ) ) : problems . append ( 'Does not begin with {expected}. Found {actual} instead' . format ( expected = repr ( expected_start ) , actual = repr ( help_text [ : len ( expected_start ) ] ) ) ) return problems
identify and return a list of help text problems .