'Check that the submissions API is sent an anonymous student ID.'

def test_submissions_api_anonymous_student_id(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'})
    with patch('submissions.api.get_scores') as mock_get_scores:
        mock_get_scores.return_value = {self.problem_location('p3').to_deprecated_string(): {'points_earned': 1, 'points_possible': 1, 'created_at': now()}}
        self.get_course_grade()
        mock_get_scores.assert_called_with(self.course.id.to_deprecated_string(), anonymous_id_for_user(self.student_user, self.course.id))
