'Check that the container page displays the correct unit
access message.'

def _verify_container_unit_access_message(self, group_ids, expected_message):

    self.outline.visit()
    self.outline.expand_all_subsections()
    unit = self.outline.section_at(0).subsection_at(0).unit_at(0)
    self._toggle_container_unit_access(group_ids, unit)
    container_page = self.go_to_unit_page()
    self.assertEqual(str(container_page.get_xblock_access_message()), expected_message)
