'Check that the current visibility is displayed at the top of the dialog.'

def verify_current_groups_message(self, visibility_editor, expected_current_groups):

    if (expected_current_groups == self.ALL_LEARNERS_AND_STAFF):
        self.assertEqual('Access    is    not    restricted', visibility_editor.current_groups_message)
    else:
        self.assertEqual('Access    is    restricted    to:    {groups}'.format(groups=expected_current_groups), visibility_editor.current_groups_message)
