'Check that course is imported successfully as an entrance exam.'

def test_import_existing_entrance_exam_course(self):

    course = self.store.get_course(self.course.id)
    self.assertIsNotNone(course)
    self.assertEquals(course.entrance_exam_enabled, False)
    with open(self.entrance_exam_tar) as gtar:
        args = {'name': self.entrance_exam_tar, 'course-data': [gtar]}
        resp = self.client.post(self.url, args)
    self.assertEquals(resp.status_code, 200)
    course = self.store.get_course(self.course.id)
    self.assertIsNotNone(course)
    self.assertEquals(course.entrance_exam_enabled, True)
    self.assertEquals(course.entrance_exam_minimum_score_pct, 0.7)
