#NEWLINE# def test_create_package_dir( self ) : #NEWLINE# #INDENT# " configure() will create the package dir if it doesn't exist " #NEWLINE# tempdir = tempfile . mkdtemp ( ) #NEWLINE# os . rmdir ( tempdir ) #NEWLINE# settings = { #NEWLINE# #INDENT# 'storage.dir' : tempdir , #NEWLINE# #UNINDENT# } #NEWLINE# FileStorage . configure ( settings ) #NEWLINE# try : #NEWLINE# #INDENT# self . assertTrue ( os . path . exists ( settings ) ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# os . rmdir ( tempdir )