'Test that a course which has HTML that has style formatting is preserved in export/import'

def test_html_export_roundtrip(self):

    content_store = contentstore()
    import_course_from_xml(self.store, self.user.id, TEST_DATA_DIR, ['toy'], create_if_not_present=True)
    course_id = self.store.make_course_key('edX', 'toy', '2012_Fall')
    root_dir = path(mkdtemp_clean())
    export_course_to_xml(self.store, content_store, course_id, root_dir, 'test_roundtrip')
    import_course_from_xml(self.store, self.user.id, root_dir, create_if_not_present=True)
    html_module = self.store.get_item(course_id.make_usage_key('html', 'with_styling'))
    self.assertIn('<p    style="font:italic    bold    72px/30px    Georgia,    serif;    color:    red;    ">', html_module.data)
    html_module = self.store.get_item(course_id.make_usage_key('html', 'just_img'))
    self.assertIn('<img    src="/static/foo_bar.jpg"    />', html_module.data)
