def enable_tracing(self):
        hooktrace = self.hook._trace

        def before(hook_name, methods, kwargs):
            hooktrace.root.indent += 1
            hooktrace(hook_name, kwargs)

        def after(outcome, hook_name, methods, kwargs):
            if outcome.excinfo is None:
                hooktrace("finish", hook_name, "-->", outcome.result)
            hooktrace.root.indent -= 1

        return self.add_hookcall_monitoring(before, after)
Test the use of a lazy callable for ForeignKey.default
dataset/ETHPy150Open pytest-dev/pytest/_pytest/vendored_packages/pluggy.py/PluginManager.enable_tracing--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/regressiontests/model_fields/tests.py/ForeignKeyTests.test_callable_default