def METHOD_NAME(rule_runner: RuleRunner, tmpdir) -> None:
    deployment_files = {
        "src/tf/deployment/BUILD": textwrap.dedent(
            """\
            terraform_deployment(name="root", root_module=":mod")
            terraform_module(name="mod")
        """
        ),
        "src/tf/deployment/main.tf": textwrap.dedent(
            """\
            module "mod0" {
              source = "../module/"
            }
        """
        ),
    }
    module_files = {
        "src/tf/module/BUILD": "terraform_module()",
        "src/tf/module/main.tf": 'resource "null_resource" "dep" {}',
    }
    deployment = StandardDeployment(
        {**deployment_files, **module_files},
        Path(str(tmpdir.mkdir(".terraform").join("state.json"))),
        Address("src/tf/deployment", target_name="root"),
    )
    initialised_files = _do_init_terraform(rule_runner, deployment, initialise_backend=True)
    # Assert that our module got included in the module.json
    assert initialised_files
    modules_file_raw = find_file(initialised_files, ".terraform/modules/modules.json")
    assert modules_file_raw
    modules_file = json.loads(modules_file_raw.content)
    assert any(
        module for module in modules_file["Modules"] if module["Key"] == "mod0"
    ), "Did not find our module in modules.json"
    # Assert that the module was explored as part of init
    assert find_file(
        initialised_files,
        ".terraform/providers/registry.terraform.io/hashicorp/null/*/*/terraform-provider-null*",
    ), "Did not find expected provider contained in module, did we successfully include it in the files passed to `init`?"