'Test reset single student attempts for entrance exam.'

def test_reset_entrance_exam_student_attempts_single(self):

    url = reverse('reset_student_attempts_for_entrance_exam', kwargs={'course_id': unicode(self.course.id)})
    response = self.client.post(url, {'unique_student_identifier': self.student.email})
    self.assertEqual(response.status_code, 200)
    changed_modules = StudentModule.objects.filter(module_state_key__in=self.ee_modules)
    for changed_module in changed_modules:
        self.assertEqual(json.loads(changed_module.state)['attempts'], 0)
