#NEWLINE# def test_get_basic( self ) : #NEWLINE# #INDENT# self . set_text ( self . text_javascript ( ) ) #NEWLINE# self . set_settings ( { #NEWLINE# #INDENT# 'level_char' : '>' , #NEWLINE# #UNINDENT# } ) #NEWLINE# toc = self . get_plugin ( ) #NEWLINE# titles = toc . get_comment_titles ( 'string' ) #NEWLINE# for title in [ 'Heading 1' , '- Heading 2' , '-- Heading 3' ] : #NEWLINE# #INDENT# if ( title in titles ) : #NEWLINE# #INDENT# self . ok ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . error ( ( 'Missing title ' + titles ) )