'Two checks:
- unknown metadata is preserved across import-export
- inherited metadata doesn\'t leak to children.'

def test_metadata_import_export(self):

    system = self.get_system()
    from_date_string = 'March    20    17:00'
    url_name = 'test1'
    unicorn_color = 'purple'
    start_xml = '\n                                <course    org="{org}"    course="{course}"\n                                                                due="{due}"    url_name="{url_name}"    unicorn="{unicorn_color}">\n                                                <chapter    url="hi"    url_name="ch"    display_name="CH">\n                                                                <html    url_name="h"    display_name="H">Two    houses,    ...</html>\n                                                </chapter>\n                                </course>'.format(due=from_date_string, org=ORG, course=COURSE, url_name=url_name, unicorn_color=unicorn_color)
    descriptor = system.process_xml(start_xml)
    compute_inherited_metadata(descriptor)
    self.course_descriptor_inheritance_check(descriptor, from_date_string, unicorn_color, url_name)
