#NEWLINE# @ mock . patch ( 'storyboardclient.v1.teams.UsersNestedManager._delete' ) #NEWLINE# def test_teams_delete_user( self , mock_private_delete ) : #NEWLINE# #INDENT# test_team = teams . Team ( mock . MagicMock ( ) , info = { #NEWLINE# #INDENT# 'id' : 'test_team_id' , #NEWLINE# #UNINDENT# } ) #NEWLINE# test_user = users . User ( mock . MagicMock ( ) , info = { #NEWLINE# #INDENT# 'id' : 'test_user_id' , #NEWLINE# #UNINDENT# } ) #NEWLINE# test_team . users . remove ( mock_private_delete ) #NEWLINE# mock_private_delete . assert_called_once_with ( '/teams/test_team_id/users/test_user_id' )