b3j0f.utils.test.runtime module

class b3j0f.utils.test.runtime.MakeConstants(*args, **kwargs)[source]

Bases: b3j0f.utils.ut.UTCase

sample()[source]
setUp()[source]
test_class()[source]
test_function()[source]
verbose(message)[source]

Verbose function to apply when using make_constants

class b3j0f.utils.test.runtime.SafeTestCase(*args, **kwargs)[source]

Bases: b3j0f.utils.ut.UTCase

Test the function about safe coding.

test_eval()[source]

Test safe eval function with max.

test_eval_error()[source]

Test safe eval function with open (error).

test_eval_globals()[source]

Test safe eval function with global open.

test_eval_locals()[source]

Test safe eval function.

test_safe_builtins_max()[source]

Test max in SAFE_BUILTINS.

test_safe_builtins_open()[source]

Test open not in SAFE_BUILTINS.

test_safe_exec()[source]

Test safe exec function with max.

test_safe_exec_empty_globals()[source]

Test safe exec function with empty globals.

test_safe_exec_empty_locals()[source]

Test safe exec function with empty locals.

test_safe_exec_error()[source]

Test safe exec function with open (error).

test_safe_exec_globals()[source]

Test safe exec function with open in globals.

test_safe_exec_locals()[source]

Test safe exec function with open in locals.