def pytest_runtest_setup(item):
    if 'async' in item.keywords and 'loop' not in item.fixturenames:
        item.fixturenames.append('loop')
Replace obj.attr_name with new_attr. This method is smart and works
dataset/ETHPy150Open klen/muffin/muffin/pytest.py/pytest_runtest_setup--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/mox/stubout.py/StubOutForTesting.SmartSet