from __future__ import absolute_import

import functools
import black_magic.decorator
from test.benchmark import _common


class Functools(_common.Base):

    def __init__(self):
        self._decorator = functools.wraps(_common.wrap)

    def __call__(self):
        self._decorator(_common.func)


class BlackMagicDecorator(_common.Base):

    def __init__(self):
        self._decorator = black_magic.decorator.wraps(_common.wrap)

    def __call__(self):
        self._decorator(_common.func)


if __name__ == '__main__':
    _common.main(Functools, BlackMagicDecorator)

Add some random benchmark module
Add some random benchmark module

This module existed for some time in my local working dir. TBH, I forgot
about its precise purpose, but it doesn't really hurt to add it right
now, so whatever…
