def METHOD_NAME(self, patched_rmtree, patched_path):
    mock_path_obj = Mock()
    mock_path_obj.exists.return_value = True
    patched_path.return_value = mock_path_obj
    rmtree_if_exists(Mock())
    patched_rmtree.assert_called_with(mock_path_obj)