'Test reset single student attempts.'

def test_reset_student_attempts_single(self):

    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})
    self.assertEqual(response.status_code, 200)
    changed_module = StudentModule.objects.get(pk=self.module_to_reset.pk)
    self.assertEqual(json.loads(changed_module.state)['attempts'], 0)
