'To verify that the removal of courseware chrome elements is working,
we include this test here to make sure the chrome elements that should
be removed actually exist in the full courseware page.
If this test fails, it\'s probably because the HTML template for courseware
has changed and COURSEWARE_CHROME_HTML_ELEMENTS needs to be updated.'

@ddt.data(('vertical_block', ModuleStoreEnum.Type.mongo, 10), ('vertical_block', ModuleStoreEnum.Type.split, 6), ('html_block', ModuleStoreEnum.Type.mongo, 11), ('html_block', ModuleStoreEnum.Type.split, 6))
@ddt.unpack
def test_courseware_html(self, block_name, default_store, mongo_calls):

    with self.store.default_store(default_store):
        self.block_name_to_be_tested = block_name
        self.setup_course(default_store)
        self.setup_user(admin=True, enroll=True, login=True)
        with check_mongo_calls(mongo_calls):
            url = get_redirect_url(self.course.id, self.block_to_be_tested.location)
            response = self.client.get(url)
            expected_elements = (self.block_specific_chrome_html_elements + self.COURSEWARE_CHROME_HTML_ELEMENTS)
            for chrome_element in expected_elements:
                self.assertContains(response, chrome_element)
