'Build course XML for importing'

def setUp(self):

    super(TestImport, self).setUp()
    self.content_dir = path(tempfile.mkdtemp())
    self.addCleanup(shutil.rmtree, self.content_dir)
    self.base_course_key = self.store.make_course_key(u'edX', u'test_import_course', u'2013_Spring')
    self.truncated_key = self.store.make_course_key(u'edX', u'test_import', u'2014_Spring')
    self.good_dir = self.create_course_xml(self.content_dir, self.base_course_key)
    self.course_dir = self.create_course_xml(self.content_dir, self.truncated_key)
