'Go through each interface and ensure it works.'

def test_course_update(self):

    def get_response(content, date):
        '\n                                                Helper    method    for    making    call    to    server    and    returning    response.\n\n                                                Does    not    supply    a    provided_id.\n                                                '
        payload = {'content': content, 'date': date}
        url = self.create_update_url()
        resp = self.client.ajax_post(url, payload)
        self.assertContains(resp, '', status_code=200)
        return json.loads(resp.content)
    resp = self.client.get_html(reverse_course_url('course_info_handler', self.course.id))
    self.assertContains(resp, 'Course    Updates', status_code=200)
    init_content = '<iframe    width="560"    height="315"    src="http://www.youtube.com/embed/RocY-Jd93XU"    frameborder="0">'
    content = (init_content + '</iframe>')
    payload = get_response(content, 'January    8,    2013')
    self.assertHTMLEqual(payload['content'], content)
    first_update_url = self.create_update_url(provided_id=payload['id'])
    content += '<div>div    <p>p<br/></p></div>'
    payload['content'] = content
    resp = self.client.ajax_post(first_update_url, payload, HTTP_X_HTTP_METHOD_OVERRIDE='PUT', REQUEST_METHOD='POST')
    self.assertHTMLEqual(content, json.loads(resp.content)['content'], 'iframe    w/    div')
    refetched = self.client.get_json(first_update_url)
    self.assertHTMLEqual(content, json.loads(refetched.content)['content'], 'get    w/    provided    id')
    content = '<ol/>'
    payload = get_response(content, 'January    11,    2013')
    self.assertHTMLEqual(content, payload['content'], 'self    closing    ol')
    course_update_url = self.create_update_url()
    resp = self.client.get_json(course_update_url)
    payload = json.loads(resp.content)
    self.assertEqual(len(payload), 2)
    self.assertContains(self.client.ajax_post(course_update_url, {'garbage': 1}), 'Failed    to    save', status_code=400)
    content = 'outside    <strong>inside</strong>    after'
    payload = get_response(content, 'June    22,    2000')
    self.assertHTMLEqual(content, payload['content'], 'text    outside    tag')
    content = 'blah    blah'
    payload = {'content': content, 'date': 'January    21,    2013'}
    self.assertContains(self.client.ajax_post((course_update_url + '9'), payload), 'Failed    to    save', status_code=400)
    content = '<garbage    tag    No    closing    brace    to    force    <span>error</span>'
    payload = {'content': content, 'date': 'January    11,    2013'}
    self.assertContains(self.client.ajax_post(course_update_url, payload), '<garbage')
    content = '<p><br><br></p>'
    payload = get_response(content, 'January    11,    2013')
    self.assertHTMLEqual(content, payload['content'])
    self.assertContains(self.client.delete((course_update_url + '19')), 'delete', status_code=400)
    content = 'blah    blah'
    payload = get_response(content, 'January    28,    2013')
    this_id = payload['id']
    self.assertHTMLEqual(content, payload['content'], 'single    iframe')
    resp = self.client.get_json(course_update_url)
    payload = json.loads(resp.content)
    before_delete = len(payload)
    url = self.create_update_url(provided_id=this_id)
    resp = self.client.delete(url)
    payload = json.loads(resp.content)
    self.assertEqual(len(payload), (before_delete - 1))
