#NEWLINE# def test_directory( self ) : #NEWLINE# #INDENT# os . path . isdir ( '/appdir' ) . AndReturn ( True ) #NEWLINE# os . path . exists ( os . path . join ( '/appdir' , 'app.yaml' ) ) . AndReturn ( True ) #NEWLINE# os . path . exists ( os . path . join ( '/appdir' , 'backends.yaml' ) ) . AndReturn ( False ) #NEWLINE# os . path . exists ( os . path . join ( '/appdir' , 'backends.yml' ) ) . AndReturn ( False ) #NEWLINE# os . path . isdir ( os . path . join ( '/appdir' , 'app.yaml' ) ) . AndReturn ( False ) #NEWLINE# server_config = ServerConfigurationStub ( ) #NEWLINE# application_configuration . ServerConfiguration ( os . path . join ( '/appdir' , 'app.yaml' ) ) . AndReturn ( server_config ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# config = application_configuration . ApplicationConfiguration ( [ '/appdir' ] ) #NEWLINE# self . mox . VerifyAll ( ) #NEWLINE# self . assertEqual ( 'myapp' , config . app_id ) #NEWLINE# self . assertSequenceEqual ( [ server_config ] , server_config . servers )