'Test the raw html editing functionality.'

def test_edit_raw_html(self):

    modified_content = '<p>modified    content</p>'
    unit = self.go_to_unit_page()
    container = unit.xblocks[1].go_to_container()
    component = container.xblocks[1].children[0]
    component.edit()
    html_editor = HtmlXBlockEditorView(self.browser, component.locator)
    html_editor.set_content_and_save(modified_content, raw=True)
    self.assertEqual(component.student_content, 'modified    content')
