'test that creating an entrance exam should store the default value, if key missing in json request
or entrance_exam_minimum_score_pct is an empty string'

@unittest.skipUnless(settings.FEATURES.get('ENTRANCE_EXAMS', False), True)
def test_entrance_exam_store_default_min_score(self):

    settings_details_url = get_url(self.course.id)
    test_data_1 = {'entrance_exam_enabled': 'true', 'syllabus': 'none', 'short_description': 'empty', 'overview': '', 'effort': '', 'intro_video': ''}
    response = self.client.post(settings_details_url, data=json.dumps(test_data_1), content_type='application/json', HTTP_ACCEPT='application/json')
    self.assertEquals(response.status_code, 200)
    course = modulestore().get_course(self.course.id)
    self.assertTrue(course.entrance_exam_enabled)
    self.assertEquals(course.entrance_exam_minimum_score_pct, 0.5)
    test_data_2 = {'entrance_exam_enabled': 'true', 'entrance_exam_minimum_score_pct': '', 'syllabus': 'none', 'short_description': 'empty', 'overview': '', 'effort': '', 'intro_video': ''}
    response = self.client.post(settings_details_url, data=json.dumps(test_data_2), content_type='application/json', HTTP_ACCEPT='application/json')
    self.assertEquals(response.status_code, 200)
    course = modulestore().get_course(self.course.id)
    self.assertTrue(course.entrance_exam_enabled)
    self.assertEquals(course.entrance_exam_minimum_score_pct, 0.5)
