def test_course_creation_for_unknown_organization_strict(self, store):
        """
        Tests that when ORGANIZATIONS_AUTOCREATE is False,
        creating a course-run with an unknown org slug will raise a validation error.
        """
        with modulestore().default_store(store):
            response = self.client.ajax_post(self.course_create_rerun_url, {
                'org': 'orgX',
                'number': 'CS101',
                'display_name': 'Course with web certs enabled',
                'run': '2015_T2'
            })
            self.assertEqual(response.status_code, 400)
            with self.assertRaises(InvalidOrganizationException):
                get_organization_by_short_name("orgX")
            data = parse_json(response)
            self.assertIn('Organization you selected does not exist in the system', data['error'])