#NEWLINE# def test_multiple_proxies( container_factory , rabbit_config ) : #NEWLINE# #INDENT# container = container_factory ( FooService , rabbit_config ) #NEWLINE# container . start ( ) #NEWLINE# with ServiceRpcProxy ( 'foobar' , rabbit_config ) as proxy1 : #NEWLINE# #INDENT# res1 = proxy1 . spam . async ( ham = 1 ) #NEWLINE# with ServiceRpcProxy ( 'foobar' , rabbit_config ) as proxy2 : #NEWLINE# #INDENT# res2 = proxy2 . spam . async ( ham = 2 ) #NEWLINE# assert ( res1 . result ( ) == 1 ) #NEWLINE# assert ( res2 . result ( ) == 2 )