Ejemplo n.º 1
0
    def test_system_OS_function(self):
        exprCode  = u"""
# (C) முத்தையா அண்ணாமலை 2014
system("ls -lrt")
system("cat /etc/passwd")
""" #missing end function statement
        TestEzhilException.create_and_test_spl(exprCode,RuntimeException,"system")
Ejemplo n.º 2
0
    def test_globals_deleted_fcn(self):        
        exprCode  = u"""
# (C) முத்தையா அண்ணாமலை 2013
globals() #not avaiable in safe mode
""" #missing end function statement
        TestEzhilException.create_and_test_spl(exprCode,RuntimeException,"globals")
Ejemplo n.º 3
0
    def test_getenv_OS_module_fcn(self):        
        exprCode  = u"""
# (C) முத்தையா அண்ணாமலை 2013
getenv("SHELL") #not avaiable in safe mode
""" #missing end function statement
        TestEzhilException.create_and_test_spl(exprCode,RuntimeException,"getenv")