#NEWLINE# def test_python_hello_mimeview( self ) : #NEWLINE# #INDENT# '\n        Simple Python highlighting with Pygments (through Mimeview.render)\n        ' #NEWLINE# result = Mimeview ( self . env ) . render ( self . context , 'text/x-python' , '\ndef hello():\n        return "Hello World!"\n' ) #NEWLINE# self . assertTrue ( result ) #NEWLINE# if ( pygments_version < parse_version ( '2.1' ) ) : #NEWLINE# #INDENT# self . _test ( 'python_hello_mimeview' , result ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _test ( 'python_hello_mimeview_pygments_2.1plus' , result )