'Verifies that all the descendants of item are staff only'

def _verify_descendants_are_staff_only(self, item):

    self.assertTrue(item.is_staff_only)
    if hasattr(item, 'children'):
        for child in item.children():
            self._verify_descendants_are_staff_only(child)
