def testParentsToRoot(self):
    '\n        Demonstrate that forcing parentsToRoot will cause it to skip the\n        filtering process.\n        '
    item = Item().createItem('My Item Name', creator=self.users[0], folder=self.publicFolder)
    parents = Item().parentsToRoot(item, force=True)
    for parent in parents:
        self.assertNotIn('_accessLevel', parent['object'])
    parents = Item().parentsToRoot(item)
    for parent in parents:
        self.assertIn('_accessLevel', parent['object'])
Demonstrate that forcing parentsToRoot will cause it to skip the
filtering process.
def testParentsToRoot(self):
    '\n        Demonstrate that forcing parentsToRoot will cause it to skip the\n        filtering process.\n        '
    item = Item().createItem('My Item Name', creator=self.users[0], folder=self.publicFolder)
    parents = Item().parentsToRoot(item, force=True)
    for parent in parents:
        self.assertNotIn('_accessLevel', parent['object'])
    parents = Item().parentsToRoot(item)
    for parent in parents:
        self.assertIn('_accessLevel', parent['object'])