def METHOD_NAME(rule_runner: RuleRunner) -> None:
    rule_runner.write_files(
        {
            "test/BUILD": "docker_image(instructions=['FROM base'])",
            "test/Dockerfile": "FROM base",
        }
    )
    with pytest.raises(ExecutionError, match=r"The `docker_image` test:test provides both"):
        assert_dockerfile(rule_runner, filename="", content="")