#NEWLINE# def test_yaml_files_with_different_app_ids( self ) : #NEWLINE# #INDENT# os . path . isdir ( '/appdir/app.yaml' ) . AndReturn ( False ) #NEWLINE# server_config1 = ServerConfigurationStub ( ) #NEWLINE# application_configuration . ServerConfiguration ( '/appdir/app.yaml' ) . AndReturn ( server_config1 ) #NEWLINE# os . path . isdir ( '/appdir/other.yaml' ) . AndReturn ( False ) #NEWLINE# server_config2 = ServerConfigurationStub ( application = 'other_app' , server_name = 'other' ) #NEWLINE# application_configuration . ServerConfiguration ( '/appdir/other.yaml' ) . AndReturn ( server_config2 ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# self . assertRaises ( errors . InvalidAppConfigError , application_configuration . ApplicationConfiguration , [ '/appdir/app.yaml' , '/appdir/other.yaml' ] ) #NEWLINE# self . mox . VerifyAll ( )