'Edit the visibility of a unit on the container page and returns an XBlockVisibilityEditorView.'

def edit_unit_visibility(self, unit):

    unit.edit_visibility()
    return XBlockVisibilityEditorView(self.browser, unit.locator)
