b3j0f.annotation.test.core module

class b3j0f.annotation.test.core.AnnotationTest(*args, **kwargs)[source]

Bases: b3j0f.utils.ut.UTCase

UT class which creates an annotation and delete it at the end

setUp()[source]

Create a new annotation

tearDown()[source]

Delete self.annotation

class b3j0f.annotation.test.core.DeleteTest(*args, **kwargs)[source]

Bases: b3j0f.annotation.test.core.AnnotationTest

Test annotation deletion

test_one_annotation()[source]

Test to delete one bound annotation

test_two_annotations()[source]

Test to delete one annotation bound twice on the same element

test_two_annotations_wit_two_objects()[source]

Test to delete one annotations bound to two elements

class b3j0f.annotation.test.core.GetAnnotatedFields(*args, **kwargs)[source]

Bases: b3j0f.annotation.test.core.AnnotationTest

Test get_annotated_fields class method

test_class()[source]
class b3j0f.annotation.test.core.GetAnnotationsTest(*args, **kwargs)[source]

Bases: b3j0f.annotation.test.core.AnnotationTest

Test to annotate elements.

test_None()[source]

Test to annotate None.

test_boundconstructor()[source]

Test to annotate a bound constructor.

test_boundmethod()[source]

Test to annotate a bound method.

test_builtin()[source]

Test to annotate a builtin element.

test_class()[source]

Test to annotate a class.

test_constructor()[source]

Test to annotate a constructor.

test_dboundconstructor()[source]

Test to annotate directly a bound constructor.

test_dclass()[source]

Test to annotate directly a class.

test_dconstructor()[source]

Test to annotate directly a constructor.

test_dmethod()[source]

Test to annotate directly a method.

test_function()[source]

Test to annotate a function.

test_instance()[source]

Test to annotate an instance.

test_method()[source]

Test to annotate a method.

test_module()[source]

Test to annotate a module.

test_namespace()[source]

Test to annotate a namespace.

test_number()[source]

Test to annotate a number.

class b3j0f.annotation.test.core.GetLocalAnnotationsTest(*args, **kwargs)[source]

Bases: b3j0f.annotation.test.core.AnnotationTest

Test get local annotatations.

test_None()[source]

Test to annotate None.

test_boundconstructor()[source]

Test to annotate a bound constructor.

test_boundmethod()[source]

Test to annotate a bound method.

test_builtin()[source]

Test to annotate a builtin element.

test_class()[source]

Test to annotate a class.

test_constructor()[source]

Test to annotate a constructor.

test_dboundconstructor()[source]

Test to annotate directly a bound constructor.

test_dconstructor()[source]

Test to annotate directly a constructor.

test_function()[source]

Test to annotate a function.

test_instance()[source]

Test to annotate an instance.

test_method()[source]

Test to annotate a method.

test_module()[source]

Test to annotate a module.

test_namespace()[source]

Test to annotate a namespace.

test_number()[source]

Test to annotate a number.

class b3j0f.annotation.test.core.GetLocalParameterizedAnnotationsTest(*args, **kwargs)[source]

Bases: b3j0f.annotation.test.core.AnnotationTest

setUp()[source]
test_exclude()[source]

Test to exclude annotations

test_override()[source]

Test to override annotation

test_propagate()[source]

Test to propagate annotation

test_stop_propagation()[source]

Test Stop propagation annotation

class b3j0f.annotation.test.core.GetParameterizedAnnotationsTest(*args, **kwargs)[source]

Bases: b3j0f.annotation.test.core.AnnotationTest

setUp()[source]
test_exclude()[source]

Test to exclude annotations

test_override()[source]

Test to override annotation

test_propagate()[source]

Test to propagate annotation

test_stop_propagation()[source]

Test Stop propagation annotation

class b3j0f.annotation.test.core.MemoryTest(*args, **kwargs)[source]

Bases: b3j0f.annotation.test.core.AnnotationTest

Test InMemory Annotations.

setUp()[source]
tearDown()[source]
test_exclude()[source]
test_get()[source]
test_get_inheritance()[source]
test_in_memory()[source]

Test if annotation is in memory

test_not_in_memory()[source]

Test annotation not in memory

test_set_in_memory()[source]

Test set in_memory

test_set_not_in_memory()[source]

Test set not in_memory

class b3j0f.annotation.test.core.OnBindTargetTest(*args, **kwargs)[source]

Bases: b3j0f.annotation.test.core.AnnotationTest

Test on_bind_target handler

on_bind_target(annotation, target, ctx, *args, **kwargs)[source]
setUp()[source]
test_many()[source]
test_many_elts()[source]
test_one()[source]
class b3j0f.annotation.test.core.RemoveTest(*args, **kwargs)[source]

Bases: b3j0f.annotation.test.core.AnnotationTest

Test remove class method.

setUp()[source]
tearDown()[source]
test()[source]

Test simple remove

test_exclude()[source]
test_inheritance()[source]
class b3j0f.annotation.test.core.RoutineAnnotationTest(*args, **kwargs)[source]

Bases: b3j0f.annotation.test.core.AnnotationTest

test()[source]
class b3j0f.annotation.test.core.TTLTest(*args, **kwargs)[source]

Bases: b3j0f.annotation.test.core.AnnotationTest

Test ttl.

setUp()[source]
test_def()[source]

Test ttl at definition

test_run()[source]

Test to set ttl at runtime

test_run_run()[source]

Test to change ttl after changing it a first time

class b3j0f.annotation.test.core.TargetsTest(*args, **kwargs)[source]

Bases: b3j0f.annotation.test.core.AnnotationTest

Test targets attribute

test_many()[source]
test_many_many()[source]
test_none()[source]
test_one()[source]
class b3j0f.annotation.test.core.TestAnnotation(on_bind_target=None, propagate=True, override=False, ttl=None, in_memory=False)[source]

Bases: b3j0f.annotation.core.Annotation

Annotation for inheritance tests

Previous topic

b3j0f.annotation.test.check module

Next topic

b3j0f.annotation.test.interception module

This Page