memote.utils module

Utility functions used by memote and its tests.

memote.utils.register_with(registry)[source]

Register a passed in object.

Intended to be used as a decorator on model building functions with a dict as a registry.

Examples

REGISTRY = dict() @register_with(REGISTRY) def build_empty(base):

return base