#NEWLINE# def test_isolation( ) : #NEWLINE# #INDENT# app1 = create_app ( ) #NEWLINE# app2 = create_app ( ) #NEWLINE# app1 . config [ 'DOCKER_URL' ] = 'http://docker-testing1:2375' #NEWLINE# app2 . config [ 'DOCKER_URL' ] = 'http://docker-testing2:2375' #NEWLINE# docker1 = None #NEWLINE# docker2 = None #NEWLINE# with app1 . app_context ( ) : #NEWLINE# #INDENT# docker1 = docker . client #NEWLINE# #UNINDENT# with app2 . app_context ( ) : #NEWLINE# #INDENT# docker2 = docker . client #NEWLINE# #UNINDENT# assert ( docker1 is not app1 )