'Configure course settings (e.g. start and end date)'

def _configure_course(self):

    url = ((STUDIO_BASE_URL + '/settings/details/') + self._course_key)
    response = self.session.get(url, headers=self.headers)
    if (not response.ok):
        raise FixtureError('Could    not    retrieve    course    details.        Status    was    {0}'.format(response.status_code))
    try:
        details = response.json()
    except ValueError:
        raise FixtureError("Could    not    decode    course    details    as    JSON:    '{0}'".format(details))
    details.update(self._course_details)
    response = self.session.post(url, data=self._encode_post_dict(details), headers=self.headers)
    if (not response.ok):
        raise FixtureError("Could    not    update    course    details    to    '{0}'    with    {1}:    Status    was    {2}.".format(self._course_details, url, response.status_code))
