def link_to_if(condition, label, url='', **attrs):
    if condition:
        return link_to(label, url, **attrs)
    else:
        return HTML(label)
Test ObtainLock().
dataset/ETHPy150Open mikeorr/WebHelpers2/webhelpers2/html/tags.py/link_to_if--crossover with--dataset/ETHPy150Open google/simian/src/tests/simian/mac/common/gae_util_test.py/GaeUtilModuleTest.testObtainLock