'Test skip entrance exam api for student.'

def test_skip_entrance_exam_student(self):

    url = reverse('mark_student_can_skip_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)
    message = (_('This    student    (%s)    will    skip    the    entrance    exam.') % self.student.email)
    self.assertContains(response, message)
    response = self.client.post(url, {'unique_student_identifier': self.student.email})
    message = (_('This    student    (%s)    is    already    allowed    to    skip    the    entrance    exam.') % self.student.email)
    self.assertContains(response, message)
