'Check that answering incorrectly is graded properly.'

def test_submissions_api_overrides_scores(self):

    self.basic_setup()
    self.submit_question_answer('p1', {'2_1': 'Correct'})
    self.submit_question_answer('p2', {'2_1': 'Correct'})
    self.submit_question_answer('p3', {'2_1': 'Incorrect'})
    self.check_grade_percent(0.67)
    self.assertEqual(self.get_course_grade().letter_grade, 'B')
    self._stop_signal_patch()
    student_item = {'student_id': anonymous_id_for_user(self.student_user, self.course.id), 'course_id': unicode(self.course.id), 'item_id': unicode(self.problem_location('p3')), 'item_type': 'problem'}
    submission = submissions_api.create_submission(student_item, 'any    answer')
    submissions_api.set_score(submission['uuid'], 1, 1)
    self.check_grade_percent(1.0)
    self.assertEqual(self.get_course_grade().letter_grade, 'A')
