'Assert that coach cannot create ccx when ``ccx_connector`` url is set.'

def test_create_ccx_with_ccx_connector_set(self):

    role = CourseCcxCoachRole(self.course_with_ccx_connect_set.id)
    role.add_users(self.coach)
    url = reverse('create_ccx', kwargs={'course_id': unicode(self.course_with_ccx_connect_set.id)})
    response = self.client.get(url)
    self.assertEqual(response.status_code, 200)
    error_message = _('A    CCX    can    only    be    created    on    this    course    through    an    external    service.    Contact    a    course    admin    to    give    you    access.')
    self.assertTrue(re.search(error_message, response.content))
