#NEWLINE# def testNamedTemporaryFile( self ) : #NEWLINE# #INDENT# obj = self . tempfile . NamedTemporaryFile ( ) #NEWLINE# created_filenames = self . tempfile . FakeReturnedMktempValues ( ) #NEWLINE# self . assertEqual ( created_filenames [ 0 ] , created_filenames . name ) #NEWLINE# self . assertTrue ( self . filesystem . GetObject ( obj . name ) ) #NEWLINE# obj . close ( ) #NEWLINE# self . assertRaises ( IOError , self . filesystem . GetObject , obj . name )