b3j0f.aop.test.joinpoint module

class b3j0f.aop.test.joinpoint.ApplyInterceptionTest(*args, **kwargs)[source]

Bases: b3j0f.utils.ut.UTCase

test_builtin()[source]
test_class_container()[source]
test_function()[source]
test_inheritance()[source]

Test interception in an inheritance context.

test_instance()[source]
test_method()[source]
class b3j0f.aop.test.joinpoint.FindCTXTest(*args, **kwargs)[source]

Bases: b3j0f.utils.ut.UTCase

Test find_ctx function.

test_class()[source]
test_class_method()[source]
test_function()[source]
test_instance_method()[source]
test_namespace()[source]
test_none()[source]
class b3j0f.aop.test.joinpoint.GetFunctionTest(*args, **kwargs)[source]

Bases: b3j0f.utils.ut.UTCase

test_builtin()[source]
test_call()[source]
test_class()[source]
test_function()[source]
test_instancemethod()[source]
test_method()[source]
test_namespace()[source]
class b3j0f.aop.test.joinpoint.JoinpointProceedingTest(*args, **kwargs)[source]

Bases: b3j0f.utils.ut.UTCase

Test to apply joinpoint poincut on any kinf of elements and parameters.

joinpoint_proceeding(jp)[source]

Base joinpoint proceeding which increments self count and return the proceeding result.

Parameters:jp (Joinpoint) – joinpoint to proceed.
Returns:joinpoint proceeding.
setUp()[source]

Create a default joinpoint with self joinpoint_proceeding such as the only one advice and an integer count attribute equals 0.

test_builtin()[source]

Test to intercept a builtin.

test_function()[source]

Test to intercept a function.

test_function_args()[source]

Test to intercept a function with var args.

test_function_args_kwargs()[source]

Test to intercept a function with var args and kwargs.

test_function_args_kwargs_params()[source]

Test to intercept a function with var args, kwargs and params.

test_function_args_kwargs_params_closure()[source]

Test to intercept a function with var args, kwargs, params and closure.

test_function_args_params()[source]

Test to intercept a function with var args and params.

test_function_args_params_closure()[source]

Test to intercept a function with var args and params an closure.

test_function_closure()[source]

Test to intercept a function with closure.

test_function_default_params()[source]

Test to intercept a function with default params.

test_function_kwargs()[source]

Test to intercept a function with kwargs.

test_function_kwargs_params()[source]

Test to intercept a function with kwargs and params.

test_function_kwargs_params_closure()[source]

Test to intercept a function with kwargs and params.

test_function_params()[source]

Test to intercept a function with params.

test_instance_method()[source]

Test to intercept a method

test_namespace()[source]

Test to intercept a namespace.

class b3j0f.aop.test.joinpoint.JoinpointTest(*args, **kwargs)[source]

Bases: b3j0f.utils.ut.UTCase

setUp()[source]
test_add_advices()[source]
test_execution()[source]
test_execution_twice()[source]
class b3j0f.aop.test.joinpoint.SuperMethodTest(*args, **kwargs)[source]

Bases: b3j0f.utils.ut.UTCase

Test super method function.

test_class()[source]
test_namespace()[source]