def METHOD_NAME(tmp_dir, dvc, mocker, erepo_dir):
    erepo_dir.gen({"foo": "foo"})
    remove_outs_call_counter = mocker.spy(Stage, "remove_outs")
    ret = main(["import-url", os.fspath(erepo_dir / "foo")])
    assert ret == 0
    assert remove_outs_call_counter.mock.call_count == 1