#NEWLINE# def test_can_write_doc_index_for_single_operation( cloudformation_command ) : #NEWLINE# #INDENT# create_stack = cloudformation_command . create_help_command ( ) . command_table [ 'create-stack' ] #NEWLINE# help_command = create_stack . create_help_command ( ) #NEWLINE# rendered = makeindex . render_docs_for_cmd ( help_command = help_command ) #NEWLINE# assert ( 'Creates a stack' in rendered ) #NEWLINE# assert ( 'SYNOPSIS' in rendered ) #NEWLINE# assert ( 'EXAMPLES' in rendered ) #NEWLINE# assert ( 'OUTPUT' in rendered ) #NEWLINE# assert ( '--stack-name' in rendered )