#NEWLINE# def getCommands( self ) : #NEWLINE# #INDENT# "Returns a list of valid commands for manage.py.\n\n    Args:\n      None\n\n    Returns:\n      A list of valid commands for manage.py as read from manage.py's help\n      output.\n    " #NEWLINE# ( rc , stdout , stderr ) = self . runCommand ( 'help' ) #NEWLINE# parts = re . split ( 'Available subcommands:' , t ) #NEWLINE# if ( len ( parts ) < 2 ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# return [ t . strip ( ) for t in parts [ ( - 1 ) ] . split ( '\n' ) if t . strip ( ) ]