#NEWLINE# def test_proxy_remote_error( container_factory , rabbit_config ) : #NEWLINE# #INDENT# container = container_factory ( FooService , rabbit_config ) #NEWLINE# container . start ( ) #NEWLINE# with ServiceRpcProxy ( 'foobar' , rabbit_config ) as proxy : #NEWLINE# #INDENT# with pytest . raises ( RemoteError ) as exc_info : #NEWLINE# #INDENT# proxy . broken ( ) #NEWLINE# #UNINDENT# assert ( exc_info . value . exc_type == 'ExampleError' )