'Test delete single student state.'

@patch('lms.djangoapps.grades.signals.handlers.PROBLEM_WEIGHTED_SCORE_CHANGED.send')
def test_reset_student_attempts_delete(self, _mock_signal):

    url = reverse('reset_student_attempts', kwargs={'course_id': self.course.id.to_deprecated_string()})
    response = self.client.post(url, {'problem_to_reset': self.problem_urlname, 'unique_student_identifier': self.student.email, 'delete_module': True})
    self.assertEqual(response.status_code, 200)
    self.assertEqual(StudentModule.objects.filter(student=self.module_to_reset.student, course_id=self.module_to_reset.course_id).count(), 0)
