'Bookmark a unit
Arguments:
location (str): unit location'

def _bookmark_unit(self, location):

    _headers = {'Content-type': 'application/json', 'X-CSRFToken': self.session.cookies['csrftoken']}
    params = {'course_id': self.course_id}
    data = json.dumps({'usage_id': location})
    response = self.session.post((BASE_URL + '/api/bookmarks/v1/bookmarks/'), data=data, params=params, headers=_headers)
    self.assertTrue(response.ok, 'Failed    to    bookmark    unit')
