This tests ensuring link integrity when removing an object via the ZMI. First we need to set up the a link between two documents: >>> self.setRoles(('Manager',)) >>> self.setText(portal.doc1, 'a document') Then we use a browser to try to delete the referenced document. 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.open('http://nohost/plone/manage_main') >>> browser.getControl(name='ids:list').getControl(value='doc2').selected = True >>> browser.getControl('Delete').click() >>> browser.contents '...