This tests the behaviour when removing some objects referencing each other.
This should result in no confirmation form whatsoever:

  >>> self.setRoles(('Manager',))
  >>> p = self.portal
  >>> self.setText(p.doc1, '<a href="doc2">a document</a>, <a href="folder1/doc3">another</a>')
  >>> self.setText(p.doc2, '<a href="doc1">a document</a>')
  >>> self.setText(p.folder1.doc3, '<a href="../doc1">a document</a>')
  >>> ref = repr(p.doc1.getReferences())
  >>> '<ATDocument at /plone/doc2>' in ref
  True
  >>> '<ATDocument at /plone/folder1/doc3>' in ref
  True
  >>> p.doc2.getReferences()
  [<ATDocument at /plone/doc1>]
  >>> p.folder1.doc3.getReferences()
  [<ATDocument at /plone/doc1>]

Then we use a browser to try to delete all three documents.  Before we
can do this we need to prevent the test framework from choking on the
exception we intentionally throw (see docs/testRemovalTriggersConfirmation.txt
for more info):

  >>> self.setStatusCode('LinkIntegrityNotificationException', 200)
  >>> browser = self.getBrowser(loggedIn=True)
  >>> browser.post('http://nohost/plone/folder_delete?paths:list=doc1&paths:list=doc2&paths:list=folder1&_authenticator=' + self.getAuthenticator(), '')
  >>> browser.url
  'http://nohost/plone/...folder_contents'
  >>> browser.contents
  '...class="portalMessage...Item(s) deleted...'

The documents should have been deleted:

  >>> portal.doc1
  Traceback (most recent call last):
  ...
  AttributeError: doc1
  >>> portal.doc2
  Traceback (most recent call last):
  ...
  AttributeError: doc2
  >>> portal.folder1.doc3
  Traceback (most recent call last):
  ...
  AttributeError: folder1

