#NEWLINE# def test_namedtemporaryfile_closes( self ) : #NEWLINE# #INDENT# '\n        The symbol django.core.files.NamedTemporaryFile is assigned as\n        a different class on different operating systems. In\n        any case, the result should minimally mock some of the API of\n        tempfile.NamedTemporaryFile from the Python standard library.\n        ' #NEWLINE# tempfile = NamedTemporaryFile ( ) #NEWLINE# self . assertTrue ( hasattr ( tempfile , 'closed' ) ) #NEWLINE# self . assertFalse ( tempfile . closed ) #NEWLINE# tempfile . close ( ) #NEWLINE# self . assertTrue ( tempfile . closed )