'Posts an update to the course'

def post_course_update(self, send_push_notification=False):

    course_update_url = self.create_update_url(course_key=self.course.id)
    self.client.ajax_post(course_update_url)
    content = u'Sample    update'
    payload = {'content': content, 'date': 'January    8,    2013'}
    if send_push_notification:
        payload['push_notification_selected'] = True
    resp = self.client.ajax_post(course_update_url, payload)
    self.assertEqual(resp.status_code, 200)
    payload = json.loads(resp.content)
    self.assertHTMLEqual(payload['content'], content)
