Unless you have configured CodeJail on your dev machine, which is not a
simple process, you will not be able to run sandboxed code.


On Tue, Jul 2, 2013 at 10:15 PM, chrisndodge <notifications@github.com>wrote:

> In cms/djangoapps/contentstore/tests/test_contentstore.py:
>
> > +        self.assertEqual(resp.status_code, 200)
> > +
> > +    @override_settings(COURSES_WITH_UNSAFE_CODE=['edX/dummycourse/.*'])
> > +    def test_module_preview_not_in_whitelist(self):
> > +        '''
> > +        Tests the ajax callback to render an XModule problem but we don't have the course listed in
> > +        our whitelist.
> > +        '''
> > +        direct_store = modulestore('direct')
> > +        import_from_xml(direct_store, 'common/test/data/', ['full'])
> > +
> > +        html_module_location = Location(['i4x', 'edX', 'full', 'html', 'html_90', None])
> > +
> > +        url = reverse('preview_component', kwargs={'location': html_module_location.url()})
> > +
> > +        # also try a custom response which will trigger the 'is this course in whitelist' logic
>
> Actually, I probably need some guidance from @nedbat<https://github.com/nedbat>.
> Are we running unit tests which actually exercises the codejail
> functionality?
>
> If not, I think the best I can do here is remove this test as - yea - it
> doesn't really exercise anything different.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/edx/edx-platform/pull/312/files#r5000819>
> .
>