'Add textbooks to the course, if any are configured.'

def _install_course_textbooks(self):

    url = ((STUDIO_BASE_URL + '/textbooks/') + self._course_key)
    for book in self._textbooks:
        payload = json.dumps(book)
        response = self.session.post(url, headers=self.headers, data=payload)
        if (not response.ok):
            raise FixtureError('Could    not    add    book    to    course:    {0}    with    {1}.        Status    was    {2}'.format(book, url, response.status_code))
