'Test that a module without an `xml_attributes` attr will still be
exported successfully'

def test_export_course_no_xml_attributes(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')
    verticals = self.store.get_items(course_id, qualifiers={'category': 'vertical'})
    vertical = verticals[0]
    open_assessment = ItemFactory.create(parent_location=vertical.location, category='openassessment', display_name='untitled')
    draft_open_assessment = self.store.convert_to_draft(open_assessment.location, self.user.id)
    self.assertFalse(hasattr(draft_open_assessment, 'xml_attributes'))
    root_dir = path(mkdtemp_clean())
    export_course_to_xml(self.store, content_store, course_id, root_dir, 'test_no_xml_attributes')
