async def METHOD_NAME(path, tmpdir):
    with_name = path.with_name("foo")
    with_suffix = path.with_suffix(".py")
    assert isinstance(with_name, trio.Path)
    assert with_name == tmpdir.join("foo")
    assert isinstance(with_suffix, trio.Path)
    assert with_suffix == tmpdir.join("test.py")