def test_capa_system(render_template=None):
 the_system = Mock(spec=LoncapaSystem, ajax_url='/dummy-ajax-url', anonymous_student_id='student', cache=None, can_execute_unsafe_code=(lambda : False), get_python_lib_zip=(lambda : None), DEBUG=True, filestore=fs.osfs.OSFS(os.path.join(TEST_DIR, 'test_files')), i18n=gettext.NullTranslations(), node_path=os.environ.get('NODE_PATH', '/usr/local/lib/node_modules'), render_template=(render_template or tst_render_template), seed=0, STATIC_URL='/dummy-static/', STATUS_CLASS=Status, xqueue={'interface': xqueue_interface, 'construct_callback': calledback_url, 'default_queuename': 'testqueue', 'waittime': 10})
 return the_system

def test_capa_system ( render_template = None ) : the_system = Mock ( spec = LoncapaSystem , ajax_url = '/dummy-ajax-url' , anonymous_student_id = 'student' , cache = None , can_execute_unsafe_code = ( lambda : False ) , get_python_lib_zip = ( lambda : None ) , DEBUG = True , filestore = fs . osfs . OSFS ( os . path . join ( TEST_DIR , 'test_files' ) ) , i18n = gettext . NullTranslations ( ) , node_path = os . environ . get ( 'NODE_PATH' , '/usr/local/lib/node_modules' ) , render_template = ( render_template or tst_render_template ) , seed = 0 , STATIC_URL = '/dummy-static/' , STATUS_CLASS = Status , xqueue = { 'interface' : xqueue_interface , 'construct_callback' : calledback_url , 'default_queuename' : 'testqueue' , 'waittime' : 10 } ) return the_system
construct a mock loncapasystem instance .