def METHOD_NAME():
    with patch("pyatv.support.knock.knock") as knock:
        info = SimpleNamespace(ports=set(), knock_count=0)
        async def _stub_knock(address, ports, loop):
            info.ports.update(ports)
            info.knock_count += 1
        knock.side_effect = _stub_knock
        yield info