def METHOD_NAME(tmp_path):
    runner = CliRunner()
    tempfile: Path = tmp_path / "temp.py"
    tempfile.write_text("html.div(key='test')")
    result = runner.invoke(
        rewrite_keys,
        args=[str(tmp_path)],
        catch_exceptions=False,
    )
    assert result.exit_code == 0
    assert tempfile.read_text() == "html.div({'key': 'test'})"