def METHOD_NAME(self):
    # check_id should not bomb out if the portal_factory tool is missing
    if "portal_factory" in self.portal:
        self.portal._delObject("portal_factory")
    r = check_id(self.folder, "foo")
    self.assertEqual(r, None)  # success