#NEWLINE# def step5( self ) : #NEWLINE# #INDENT# print ( 'Step 5: extension detection check' ) #NEWLINE# print ( '    Checking available modules first...' ) #NEWLINE# exts = allMDExtensions ( ) #NEWLINE# if ( 'asciimathml' in exts ) : #NEWLINE# #INDENT# print ( '    asciimathml should be enabled in defaults since we found it' ) #NEWLINE# self . assertTrue ( ( 'asciimathml' in exts . settings . extensions ) ) #NEWLINE# print ( '    did we auto-attach the configured javascript too?' ) #NEWLINE# self . assertTrue ( ( JSCRIPT_TPL . format ( self . settings . mathjax ) [ : ( - 1 ) ] in self . window . notesView . page ( ) . mainFrame ( ) . toHtml ( ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# print ( '    asciimathml should not be enabled in defaults since we found it' ) #NEWLINE# self . assertFalse ( ( 'asciimathml' in self . settings . extensions ) ) #NEWLINE# print ( '    did we not auto-attach the configured javascript too?' ) #NEWLINE# self . assertFalse ( ( JSCRIPT_TPL . format ( self . settings . mathjax ) [ : ( - 1 ) ] in self . window . notesView . page ( ) . mainFrame ( ) . toHtml ( ) ) )