#NEWLINE# def test_retry_on_show( self ) : #NEWLINE# #INDENT# instance = self . plugin . return_value #NEWLINE# instance . get_network . side_effect = [ db_exc . RetryRequest ( None ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ] #NEWLINE# api = webtest . TestApp ( router . APIRouter ( ) ) #NEWLINE# api . get ( _get_path ( 'networks' , _uuid ( ) , fmt = self . fmt ) ) #NEWLINE# self . assertTrue ( instance . get_network . called )