'Test that user don\'t see credit eligibility requirements in response
if the feature flag \'ENABLE_CREDIT_ELIGIBILITY\' is not enabled.'

@mock.patch.dict('django.conf.settings.FEATURES', {'ENABLE_CREDIT_ELIGIBILITY': False})
def test_course_details_with_disabled_setting(self):

    response = self.client.get_html(self.course_details_url)
    self.assertEqual(response.status_code, 200)
    self.assertNotContains(response, 'Course    Credit    Requirements')
    self.assertNotContains(response, 'Steps    required    to    earn    course    credit')
