#NEWLINE# def test_idle_disconnect( container_factory , rabbit_manager , rabbit_config ) : #NEWLINE# #INDENT# ' Break the connection to rabbit while a service is started but idle\n    (i.e. without active workers)\n    ' #NEWLINE# container = container_factory ( ExampleService , rabbit_config ) #NEWLINE# container . start ( ) #NEWLINE# vhost = rabbit_config [ 'vhost' ] #NEWLINE# reset_rabbit_connections ( vhost , rabbit_manager ) #NEWLINE# with ServiceRpcProxy ( 'exampleservice' , container ) as proxy : #NEWLINE# #INDENT# assert ( proxy . echo ( 'hello' ) == 'hello' )