#NEWLINE# def test_appconfig_dir_ignores_hidden_files( self ) : #NEWLINE# #INDENT# config_dir = { #NEWLINE# #INDENT# 'server.conf.d/01.conf' : '\n            [app:main]\n            use = egg:swift#proxy\n            port = 8080\n            ' , #NEWLINE# 'server.conf.d/.01.conf.swp' : '\n            [app:main]\n            use = egg:swift#proxy\n            port = 8081\n            ' , #NEWLINE# #UNINDENT# } #NEWLINE# config_dir = dict ( ( ( f , dedent ( c ) ) for ( f , c ) in config_dir . items ( ) ) ) #NEWLINE# with temptree ( * zip ( * config_dir . items ( ) ) ) as path : #NEWLINE# #INDENT# conf_dir = os . path . join ( path , 'server.conf.d' ) #NEWLINE# conf = wsgi . appconfig ( conf_dir ) #NEWLINE# #UNINDENT# expected = { #NEWLINE# #INDENT# '__file__' : os . path . join ( path , 'server.conf.d' ) , #NEWLINE# 'here' : os . path . join ( path , 'server.conf.d' ) , #NEWLINE# 'port' : '8080' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( conf , conf )