def METHOD_NAME(tmp_dir, dvc):
    tmp_dir.dvc_gen("foo", "foo")
    dvc.run(
        cmd="cp foo file1",
        outs=["file1"],
        deps=["foo"],
        name="copy-foo-file1",
    )
    with pytest.raises(MoveNotDataSourceError):
        dvc.move("file1", "dst")
    assert main(["move", "file1", "dst"]) != 0
    assert (tmp_dir / "file1").exists()