'Test setting and getting section grades via the grade as url'

def test_set_get_section_grader_ajax(self):

    grade_type_url = self.setup_test_set_get_section_grader_ajax()
    response = self.client.ajax_post(grade_type_url, {'graderType': u'Homework'})
    self.assertEqual(200, response.status_code)
    response = self.client.get_json((grade_type_url + '?fields=graderType'))
    self.assertEqual(json.loads(response.content).get('graderType'), u'Homework')
    response = self.client.ajax_post(grade_type_url, {'graderType': u'notgraded'})
    self.assertEqual(200, response.status_code)
    response = self.client.get_json((grade_type_url + '?fields=graderType'))
    self.assertEqual(json.loads(response.content).get('graderType'), u'notgraded')
