From fbe2cde6e53bfa773bcdfde08b393ee53a8d8164 Mon Sep 17 00:00:00 2001 From: Chris Dodge Date: Thu, 11 Jul 2013 14:31:53 -0400 Subject: [PATCH] add simple unit test on the defaulting of the settings --- common/djangoapps/util/tests/test_sandboxing.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/djangoapps/util/tests/test_sandboxing.py b/common/djangoapps/util/tests/test_sandboxing.py index 4bccac707f..c76132696a 100644 --- a/common/djangoapps/util/tests/test_sandboxing.py +++ b/common/djangoapps/util/tests/test_sandboxing.py @@ -25,3 +25,10 @@ class SandboxingTest(TestCase): """ self.assertTrue(can_execute_unsafe_code('edX/full/2012_Fall')) self.assertTrue(can_execute_unsafe_code('edX/full/2013_Spring')) + + def test_courses_with_unsafe_code_default(self): + """ + Test that the default setting for COURSES_WITH_UNSAFE_CODE is an empty setting, e.g. we don't use @override_settings in these tests + """ + self.assertFalse(can_execute_unsafe_code('edX/full/2012_Fall')) + self.assertFalse(can_execute_unsafe_code('edX/full/2013_Spring'))