'Get a test course by directory name.  If there\'s more than one, error.'

def get_course(self, name):

    print 'Importing    {0}'.format(name)
    modulestore = XMLModuleStore(DATA_DIR, source_dirs=[name], xblock_mixins=(InheritanceMixin,), xblock_select=only_xmodules)
    courses = modulestore.get_courses()
    self.assertEquals(len(courses), 1)
    return courses[0]
