#NEWLINE# def test_encoding_on_first_line( self ) : #NEWLINE# #INDENT# script_text = '# -*- coding: utf-8 -*-\nprint 1\n' #NEWLINE# header_text_with_encoding = preprocessor . _add_encoding_to_header ( self . header_text , script_text ) #NEWLINE# self . assertEqual ( header_text_with_encoding , self . header_text_with_encoding )