def METHOD_NAME(
    tempdir: Path,
    file_pusher: FilePusher,
    dir_watcher: DirWatcher,
    policy: "PolicyName",
    expect_called: bool,
):
    f = tempdir / "my-file.txt"
    dir_watcher.update_policy(str(f), policy)
    write_with_mtime(f, b"content", mtime=0)
    file_pusher.file_changed.assert_not_called()
    dir_watcher._on_file_created(Mock(src_path=str(f)))
    assert file_pusher.file_changed.called == expect_called