#NEWLINE# def test_integration_inserting_pragma( tmpdir ) : #NEWLINE# #INDENT# path = tmpdir . join ( 'foo.py' ) #NEWLINE# path . write_binary ( b'import httplib\n' ) #NEWLINE# assert ( main ( ( path . strpath , ) ) == 1 ) #NEWLINE# assert ( path . read_binary ( ) == b'# -*- coding: utf-8 -*-\nimport httplib\n' )