#NEWLINE# def test_check_for_updates_with_includes( self ) : #NEWLINE# #INDENT# info = appinfo . AppInfoExternal ( application = 'app' , server = 'default' , version = 'version' , runtime = 'python27' , includes = [ '/appdir/include.yaml' ] , threadsafe = False ) #NEWLINE# application_configuration . ServerConfiguration . _parse_configuration ( '/appdir/app.yaml' ) . AndReturn ( ( info , [ '/appdir/include.yaml' ] ) ) #NEWLINE# os . path . getmtime ( '/appdir/app.yaml' ) . InAnyOrder ( ) . AndReturn ( 10 ) #NEWLINE# os . path . getmtime ( '/appdir/include.yaml' ) . InAnyOrder ( ) . AndReturn ( 10 ) #NEWLINE# os . path . getmtime ( '/appdir/app.yaml' ) . AndReturn ( 10 ) #NEWLINE# os . path . getmtime ( '/appdir/include.yaml' ) . AndReturn ( 11 ) #NEWLINE# application_configuration . ServerConfiguration . _parse_configuration ( '/appdir/app.yaml' ) . AndReturn ( ( info , [ '/appdir/include.yaml' ] ) ) #NEWLINE# os . path . getmtime ( '/appdir/app.yaml' ) . InAnyOrder ( ) . AndReturn ( 10 ) #NEWLINE# os . path . getmtime ( '/appdir/include.yaml' ) . InAnyOrder ( ) . AndReturn ( 11 ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# config = application_configuration . ServerConfiguration ( '/appdir/app.yaml' ) #NEWLINE# self . assertEqual ( { #NEWLINE# #INDENT# '/appdir/app.yaml' : 10 , #NEWLINE# '/appdir/include.yaml' : 10 , #NEWLINE# #UNINDENT# } , config . _mtimes ) #NEWLINE# config . _mtimes = collections . OrderedDict ( [ ( '/appdir/app.yaml' , 10 ) , ( '/appdir/include.yaml' , 10 ) ] ) #NEWLINE# self . assertSequenceEqual ( set ( ) , config . check_for_updates ( ) ) #NEWLINE# self . mox . VerifyAll ( ) #NEWLINE# self . assertEqual ( { #NEWLINE# #INDENT# '/appdir/app.yaml' : 10 , #NEWLINE# '/appdir/include.yaml' : 11 , #NEWLINE# #UNINDENT# } , config . _mtimes )