def METHOD_NAME(self):
    f2 = BuildFactory()
    # Infinite sleep command.
    if sys.platform == 'win32':
        # Ping localhost infinitely.
        # There are other options, however they either don't work in
        # non-interactive mode (e.g. 'pause'), or doesn't available on all
        # Windows versions (e.g. 'timeout' and 'choice' are available
        # starting from Windows 7).
        cmd = 'ping -t 127.0.0.1'.split()
    else:
        cmd = textwrap.dedent("""\
            while :
            do
              echo "sleeping";
              sleep 1;
            done
            """)
    f2.addStep(steps.ShellCommand(command=cmd))
    yield self.setup_trigger_config(f2)