def attr(*args, **kwargs):
    """Decorator that adds attributes to classes or functions
    for use with unit tests runner.
    """
    def wrapped(element):
        for name in args:
            setattr(element, name, True)
        for name, value in kwargs.items():
            setattr(element, name, value)
        return element
    return wrapped