'Ensure that the right types end up on the page.
component_types is the list of advanced components.
expected_types is the list of elements that should appear on the page.
expected_types and component_types should be similar, but not
exactly the same -- for example, \'video\' in
component_types should cause \'Video\' to be present.'

def check_components_on_page(self, component_types, expected_types):

    self.course.advanced_modules = component_types
    self.store.update_item(self.course, self.user.id)
    resp = self.client.get_html(get_url('container_handler', self.vert_loc))
    self.assertEqual(resp.status_code, 200)
    for expected in expected_types:
        self.assertIn(expected, resp.content)
