'Test adding a grading type record.'

def test_add(self):

    grader = {'type': 'manual', 'min_count': 5, 'drop_count': 10, 'short_label': 'yo    momma', 'weight': 17.3}
    resp = self.client.ajax_post('{}/{}'.format(self.url, (len(self.starting_graders) + 1)), grader)
    self.assertEqual(resp.status_code, 200)
    obj = json.loads(resp.content)
    self.assertEqual(obj['id'], len(self.starting_graders))
    del obj['id']
    self.assertEqual(obj, grader)
    current_graders = CourseGradingModel.fetch(self.course.id).graders
    self.assertEqual((len(self.starting_graders) + 1), len(current_graders))
