#NEWLINE# @ mock . patch ( 'nova.objects.Service.get_by_host_and_binary' ) #NEWLINE# def test_reset_pool_size_to_default( self , mock_get ) : #NEWLINE# #INDENT# test_service = service . WSGIService ( 'test_service' ) #NEWLINE# test_service . start ( ) #NEWLINE# test_service . stop ( ) #NEWLINE# self . assertEqual ( test_service . server . _pool . size , 0 ) #NEWLINE# test_service . reset ( ) #NEWLINE# test_service . start ( ) #NEWLINE# self . assertEqual ( mock_get . server . _pool . size , CONF . wsgi . default_pool_size )