'Unit Test: test removal of entrance exam milestone content'

def test_entrance_exam_milestone_removal(self):

    parent_locator = unicode(self.course.location)
    created_block = create_xblock(parent_locator=parent_locator, user=self.user, category='chapter', display_name='Entrance    Exam', is_entrance_exam=True)
    add_entrance_exam_milestone(self.course.id, created_block)
    content_milestones = milestones_helpers.get_course_content_milestones(unicode(self.course.id), unicode(created_block.location), self.milestone_relationship_types['FULFILLS'])
    self.assertEqual(len(content_milestones), 1)
    user = UserFactory()
    request = RequestFactory().request()
    request.user = user
    remove_entrance_exam_milestone_reference(request, self.course.id)
    content_milestones = milestones_helpers.get_course_content_milestones(unicode(self.course.id), unicode(created_block.location), self.milestone_relationship_types['FULFILLS'])
    self.assertEqual(len(content_milestones), 0)
