#NEWLINE# def test_mgr_delete_session_persistence( self ) : #NEWLINE# #INDENT# lb = self . loadbalancer #NEWLINE# mgr = lb . manager #NEWLINE# mgr . api . method_delete = Mock ( return_value = ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# mgr . delete_session_persistence ( lb ) #NEWLINE# uri = ( '/loadbalancers/%s/sessionpersistence' % lb . id ) #NEWLINE# mgr . api . method_delete . assert_called_once_with ( uri )