'Test enrollment email template renders for CCX.
For EDX members.'

@patch.dict('django.conf.settings.FEATURES', {'CUSTOM_COURSES_EDX': True})
def test_render_enrollment_message_ccx_members(self):

    subject_template = 'emails/enroll_email_enrolledsubject.txt'
    message_template = 'emails/enroll_email_enrolledmessage.txt'
    (subject, message) = self.get_subject_and_message_ccx(subject_template, message_template)
    self.assertIn(self.ccx.display_name, subject)
    self.assertIn(self.ccx.display_name, message)
    site = settings.SITE_NAME
    course_url = u'https://{}/courses/{}/'.format(site, self.course_key)
    self.assertIn(course_url, message)
