#NEWLINE# def test_client_socket_timeout( self ) : #NEWLINE# #INDENT# self . flags ( client_socket_timeout = 5 , group = 'wsgi' ) #NEWLINE# with mock . patch . object ( eventlet , 'spawn' ) as mock_spawn : #NEWLINE# #INDENT# server = nova . wsgi . Server ( 'test_app' , None , host = '127.0.0.1' , port = 0 ) #NEWLINE# server . start ( ) #NEWLINE# ( _ , kwargs ) = mock_spawn . call_args #NEWLINE# self . assertEqual ( CONF . wsgi . client_socket_timeout , kwargs [ 'socket_timeout' ] ) #NEWLINE# server . stop ( )