'Imports a course for testing.
Returns the course key.'

def _import_course(self, content_store, modulestore):

    course_key = modulestore.make_course_key('a', 'course', 'course')
    import_course_from_xml(modulestore, 'test_user', TEST_DATA_DIR, source_dirs=['manual-testing-complete'], static_content_store=content_store, target_id=course_key, create_if_not_present=True, raise_on_failure=True)
    return course_key
