def METHOD_NAME(self, project):
    deprecations.reset_deprecations()
    assert deprecations.active_deprecations == set()
    with pytest.raises(dbt.exceptions.CompilationError) as exc:
        run_dbt(["--warn-error", "clean"])
    exc_str = " ".join(str(exc.value).split())  # flatten all whitespace
    expected_msg = "path has changed from `dbt_modules` to `dbt_packages`."
    assert expected_msg in exc_str