def METHOD_NAME(m: Maestral) -> None:
    new_namespace_id = "2"
    home_path = "/John Doe"
    # patch client and sync engine
    account_info.root_info = TeamRootInfo(
        root_namespace_id=new_namespace_id,
        home_namespace_id="1",
        home_path=home_path,
    )
    fake_linked(m, account_info)
    home = get_home_dir()
    local_dropbox_dir = generate_cc_name(home + "/Dropbox", suffix="test runner")
    m.sync.dropbox_path = local_dropbox_dir
    m.set_state("account", "path_root_type", "user")
    m.set_state("account", "path_root_nsid", "1")
    m.set_state("account", "home_path", "")
    # attempt to migrate folder structure without Dropbox dir
    with pytest.raises(NoDropboxDirError):
        m.manager.check_and_update_path_root()