'Load test courses and return list of ids'

@classmethod
def load_courses(cls):

    store = modulestore()
    unique_org = factory.Sequence((lambda n: ('edX.%d' % n)))
    cls.course = CourseFactory.create(emit_signals=True, org=unique_org, course='simple', run='run', display_name=u'2012_F\xe1\u013a\u013a', modulestore=store)
    cls.discussion = ItemFactory.create(category='discussion', parent_location=cls.course.location)
    courses = store.get_courses()
    if (cls.test_course_key not in [c.id for c in courses]):
        import_course_from_xml(store, ModuleStoreEnum.UserID.mgmt_command, DATA_DIR, XML_COURSE_DIRS, create_if_not_present=True)
    return [course.id for course in store.get_courses()]
