def not_mobilized(f):
    @functools.wraps(f)
    def wrapper(request, *args, **kw):
        request.NO_MOBILE = True
        return f(request, *args, **kw)
    return wrapper
Test if it returns a version if the package is installed.
dataset/ETHPy150Open jbalogh/django-mobility/mobility/decorators.py/not_mobilized--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/modules/pkgutil_test.py/PkgutilTestCase.test_version