'Create the course described in the fixture.'

def _create_course(self):

    response = self.session.post((STUDIO_BASE_URL + '/course/'), data=self._encode_post_dict(self._course_dict), headers=self.headers)
    try:
        err = response.json().get('ErrMsg')
    except ValueError:
        raise FixtureError("Could    not    parse    response    from    course    request    as    JSON:    '{0}'".format(response.content))
    if (err is not None):
        raise FixtureError("Could    not    create    course    {0}.        Error    message:    '{1}'".format(self, err))
    if response.ok:
        self._course_key = response.json()['course_key']
    else:
        raise FixtureError('Could    not    create    course    {0}.        Status    was    {1}\nResponse    content    was:    {2}'.format(self._course_dict, response.status_code, response.content))
