'Verifies the expected components are visible (and there are no extras).'

def _verify_components_visible(self, expected_components):

    self.assertEqual(len(expected_components), self.courseware.num_xblock_components)
    for (index, component) in enumerate(expected_components):
        self.assertEqual(component, self.courseware.xblock_component_type(index))
