#NEWLINE# def _write_broken_import_file( self ) : #NEWLINE# #INDENT# BrokenImportTestCase . _mod_counter += 1 #NEWLINE# self . broken_import_module = '_fake_test_{0}' . format ( BrokenImportTestCase . _mod_counter ) #NEWLINE# filename = ( self . broken_import_module + '.py' ) #NEWLINE# with io . open ( filename , 'w' ) as test_file : #NEWLINE# #INDENT# test_file . write ( self . broken_contents )